2

What is the proper location for storing a central git repository on an Ubuntu 11.04 server?

I read this post and there appears to be conflicting information. This is related to www, but the idea is the same.

I currently have the repository located in /var/lib/git.repo. I read the FHS and it looks like I should have chosen /srv/git.repo or /var/git.repo, which is the source of the conflicting information in that previous post.

jmq
  • 127
  • 1
  • 2
  • 8

2 Answers2

1

I usually stick them under /srv, but in this case, it doesn't matter a whole lot.

EEAA
  • 109,363
  • 18
  • 175
  • 245
  • Why would it not matter? Isn't the point of this so that anyone who admins your server can find it? If everyone put their repositories where they wanted to, would that not be an issue? Why have any standard at all if that is the case? – jmq Feb 25 '12 at 22:53
  • 2
    Since you already did some reseach on your own a couldn't find a good standard that may just indicate there is none. While following standards certainly helps when working with other sysadmins, sometimes you just have to make local decisions and then document them – Zoredache Feb 26 '12 at 02:29
0

"The Proper Location" is location, there all local users (ssh:// in mind) can read and write repo files according to their rights.

Nothing more, nothing less

Lazy Badger
  • 3,137
  • 15
  • 13