title: Git push error pre-receive hook declined
body: <p>I have run gitlabhq rails server on virtual machine, following 1-6 steps from this tutorial <a href="https://github.com/gitlabhq/gitlab-recipes/blob/master/install/centos/README.md">https://github.com/gitlabhq/gitlab-recipes/blob/master/install/centos/README.md</a> and starts rails server executing command <code>sudo -u git -H bundle exec rails s -e production</code>. After that I created user, using admin tools and created new project under this user. Then I'm trying to push the existing project to this repo as always. But in the last step, <code>git push origin master</code> fails with the error </p>
  
  <blockquote>
    <p>[remote rejected] master -> master (pre-receive hook declined)</p>
  </blockquote>
  
  <p>Additional info:</p>
  
  <p>1) I haven't activated user (project owner) via email activation link, because I haven't configured post service on server-side and I didn't find instructions how to do that in this manual.</p>
  
  <p>2) Gitlab server generates tips how to push project to repo and there is not <code>repositories/</code> in path. I mean it generates <code>git@mygitlabhost:user/repo.git</code> instead of <code>git@mygitlabhost:repositories/user/repo.git</code> which is correct.</p>
  
  <p>3) When i tried to debug it, I opened <code>pre-receive</code> script inside repo on server and tried to output variables (there is 3 of them): <code>refs = ARGF.read</code>, <code>key_id  = ENV['GL_ID']</code> and <code>repo_path = Dir.pwd</code> and found, that key_id is always empty. Maybe the problem is here... If so, please give me suggestions on how to fix that. Thanks</p>