title: git Warning: remote HEAD refers to nonexistent ref, unable to checkout
body: <p>I'm trying to setup gitosis according to the instructions <a href="http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way" rel="noreferrer">here</a>.</p>
  
  <p>It works fine from my remote machine so the server seems to be setup fine but I'd also like to be able to do development on my gitosis server machine from a different user account (not the git user created in the gitosis setup).</p>
  
  <p>I've copied the key and modified the gitosis.conf so that the other user account has access but when I try to clone it seems to work except at the end it says: </p>
  
  <pre><code>git Warning: remote HEAD refers to nonexistent ref, unable to checkout
  </code></pre>
  
  <p>and I end up with an empty directory except for .git</p>
  
  <p>I've google for this a bit but have no real insight into what the problem is</p>