title: Git for Windows remote rejected master -> master (unpacker error)
body: <p>I'm having troubles a git repository to work with my team on our LAN network.</p>
  
  <p>I'm getting this error when pushing to my bare repository.</p>
  
  <p>The infrastructure that we have is all on Windows, and we can't change to linux.</p>
  
  <p>I'm using git for windows and I managed to start a bare repository on server and then pull the repository from another two machines, make changes, commit them and push to the bare repository.</p>
  
  <p>Everything fine at this point, but we wish to have a command to deploy our development.</p>
  
  <p>I find I need a post-receive hook.</p>
  
  <p>So I did and create the post-receive hook and look like this:</p>
  
  <pre><code>#!/bin/bash
  git --work-tree=C:/Users/Admin/Desktop/fertitest
  --git-dir=C:/Users/Admin/Desktop/fertitest.git checkout -f
  </code></pre>
  
  <p>I add the full control permission to the users that are allowed to make a push to the server on both directories the .git one and the working one where I want to deploy the code after a push command.</p>
  
  <p>After that we can make a copy of our repository were we wanted to with</p>
  
  <pre><code>git clone //SERVER/fertitest.git
  </code></pre>
  
  <p>Add files and make commits with</p>
  
  <pre><code>git add *
  git commit -a -m "first stage"
  </code></pre>
  
  <p>but when we try to push</p>
  
  <pre><code>git push origin master
  </code></pre>
  
  <p>We are getting the next error:</p>
  
  <pre><code>Enumerating objects: 3, done.
  Counting objects: 100% (3/3), done.
  Writing objects: 100% (3/3), 263 bytes | 263.00 KiB/s, done.
  Total 3 (delta 0), reused 0 (delta 0)
  error: remote unpack failed: unable to create temporary object directory
  To //CENTRAL/Users/Administrador/Desktop/fertipruebas.git
  ! [remote rejected] master -&gt; master (unpacker error)
  error: failed to push some refs to 
  '//SERVER/fertitest.git'
  </code></pre>
  
  <p>I'm stuck in this step, and I can't find where is the error, I tried to find this but everything I found were on Linux environment and was a permission errors or something else, not unpacker error.</p>
  
  <p>Any idea of what can I try?</p>