title: Git repository turned read only after gitolite migration
body: <p>[I found the solution and describe it in my reply]</p>
  
  <p>I migrated my gitolite server a while ago and upgraded from gitolite 2 to gitolite 3 in the same time.
  I just realized that while all repositories are working to fetch data, when trying to push on one of the repositories, I have the following error:</p>
  
  <pre><code>remote: Use of uninitialized value in do "file" at hooks/update line 36.
  remote: Null filename used at hooks/update line 36.
  remote: error: hook declined to update refs/heads/candidates/my-branch
  </code></pre>
  
  <p>I know that this error usually means that there is a ssh key or rights issue, but my gitolite.conf file is pretty simple and the ssh key is the same that works with the other repositories and that works to fetch from this server.</p>
  
  <p>When I try to directly ssh the server with my ssh key, the following message is displayed:</p>
  
  <pre><code>PTY allocation request failed on channel 0
  hello Fred, this is gitolite3@my-server running gitolite3 v3.6.2-26-gf9c0008 on git 1.9.1
  
   R W    repo1
   R W    repo2
   R W    gitolite-admin
  Connection to my-server closed.
  </code></pre>
  
  <p>repo1 is the one not working, while repo2 and gitolite-admin both work well.</p>
  
  <p>I don't really know where I should look next, to debug this.</p>
  
  <p>update:
  I don't know if it can be related, but I noticed that the problematic repository directory on my server had different rights than the others (766 while the others where 700). I changed it with no results, but perhaps it can be a hint to something else?</p>
  
  <p>update 2:
  Also, this problematic repository was created before the others. Could repositories created with older versions of git have a compatibility issue?</p>