What is the recommended way to change the repository location from /srv/gitosis in Gitosis installed via apt-get (on Ubuntu Server 11.04)? I have currently solved it by changing the home dir for the gitosis user and relinking the "git" symlink found in /srv/gitosis/git to match the new location. I am a bit concerned what will happen when Gitosis is updated using apt-get, will this reset these paths?
Thanks in advance!
Just found out you CAN actually answer your own question. That's great! (I first wrote the answer in a comment to my question, but this is better.)
There's a variable you can set in .gitolite.rc called $REPO_BASE. Just change this to where you want to store your repositories. To me, that seems to be the correct way to do it.
NOTE: This answer is for Gitolite, as that's what I started using instead of Gitosis (as per the first comment to my question)! Still not sure about a correct way to change it for Gitosis, although my "solution" in the question worked for me.