title: Unable to access Gitlab repositories since moving git-data folder
body: <p>I ran out of space on the partition the git-data folder was stored on, so I followed the steps in this link <a href="https://stackoverflow.com/questions/19902417/change-the-data-directory-gitlab-to-store-repos-elsewhere">change the data directory gitlab to store repos elsewhere</a></p>
  
  <p>However this didn't work, so I've moved the git-data folder back to /var/opt/gitlab/git-data and restored the gitlab.rb file configuration back to how it was before, and after reconfiguring gitlab and restarting it's still not working. </p>
  
  <p>When I try to access a repository via the web interface, Gitlab simple tells me that the repository is empty.</p>
  
  <p>I've also tried changing the permissions on the git-data folder to have git as the owner and group, and changing the permissions to 755.</p>
  
  <p>Is someone able to advice a possible fix for this?</p>
  
  <p>I've freed up space on the partition now so that is no longer an issue.</p>
  
  <p>EDIT: After some reading I've set the following permissions, which hasn't resolved the issue;</p>
  
  <pre><code># Holds repositories directory
  sudo chown -R -v git:root /var/opt/gitlab/git-data
  sudo chmod -R -v 0700 /var/opt/gitlab/git-data
  
  # Holds git repositories
  sudo chown -R -v git:git /var/opt/gitlab/git-data/repositories
  sudo chmod -R -v 2770 /var/opt/gitlab/git-data/repositories
  </code></pre>
  
  <p>EDIT: I've logged into Gitlab and created a new repository, which has created fine and appears in the git-data/repositories folder, so I suspect that the permissions on the git-data folder are correct. However for some reason gitlab still thinks that the existing repositories are empty.</p>