Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

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

share|improve this answer
    
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 2:29

"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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.