title: Git push - does not appear to be a git repository (ssh pointing to wrong directory)
body: <h2>The case:</h2>
  <p>I have installed the project <a href="https://www.gitlab.com/gitlab-ce/" rel="nofollow noreferrer">omnibus-gitlab</a> in an ubuntu release 12.04 following <a href="https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md" rel="nofollow noreferrer">this</a> tutorial.</p>
  <p>Everything seems to be correct. The server is working normally through the lan by the IP <em>192.168.1.68</em> and I can access all the features of gitlab (with the browser).</p>
  <p>There I created a project with the <strong>root</strong> user (administrator) named as <strong>project1</strong> <em>(also the keys are properly configured)</em></p>
  <p>With the project created through the browser, I created it again in my local workspace, defining it as a repository (made some changes) committed and pushed it to the server. Basically I followed these steps:</p>
  <pre><code>mkdir teste
  cd teste
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin git@192.168.1.68:root/project1.git
  git push -u origin master
  </code></pre>
  <p>At the moment of the <strong>push</strong> command, the terminal returned this message:</p>
  <pre><code>root@pcname:~Projects/project1# git push -u origin master
  git@192.168.1.68's password:
  fatal: 'root/project1.git' does not appear to be a git repository
  fatal: The remote end hung up unexpectedly
  </code></pre>
  <p>Ok. Making some attempts to discover why this was happening, I just realized that when we access the ssh server <code>git@192.168.1.68</code> we are not accessing the truly repository directory, instead of this, we are accessing 3 previous levels.</p>
  <p>So, this is the directory which has the repositories:</p>
  <p><code>/var/opt/gitlab/git-data/repositories</code> and here we have the <code>root/project1.git</code> directory/repository.</p>
  <p>Instead of that path, when we access <code>git@192.168.1.68:root</code> We are actually accessing:</p>
  <p><code>/var/opt/gitlab</code> which does't have the <code>root</code> directory.</p>
  <p>Therefore the result is naturally the git warning that no repository has been found.</p>
  <p><em>ps: whether instead of <code>git@192.168.1.68:root/project1.git</code> we use <code>git@192.168.1.68:git-data/repositories/root/project1.git</code> it works very well and we are able to push the repository normally.</em></p>
  <h2>The question:</h2>
  <p>Why is this happening and how can I direct the ssh address to the correct directory (or repository) path?</p>