I install gitolite in home directory of git user in /home/git. Now I would like to move it to /git. I copy /home/git to /git and change the home directory in /etc/passwd to be /git. I also tried it by making a link from /home/git to /git.
After the changes, when I tried to git clone git@gitserver:test1 I got the error:
fatal: 'test1' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
I think I can be in the same situation, if my disk is crushed and I need to recover everything from backup.
How I can make the /git work as /home/git work? What I'm missing?
Thanks.