I installed gitosis on my ubuntu desktop. But when I try "git clone git@localhost:gitosis-admin.git", it kept searching /home/git/, not /home/git/repositories. So I have to type "git clone git@localhost:repositories/gitosis-admin.git".
I guess there's something wrong with the default search path of gitosis. However, how to change it?
UPDATE 1:
I searched around and some pages says the reason of cannot clone use the address like "git@localhost:gitosis-admin.git" is because I'm on the git server itself. This still need time to validate.
UPDATE 2:
Even in another computer, still cannot use the shortest url. I gave it up.
UPDATE 3:
Now I turn to gitolite, and it's easier configure.
Replay the part:
The
setup.py
install script is supposed to create the repositories directory.It takes the path from util.py:
Note: considering the 'obsolete' status of the gitosis project, I mentioned in the comment Gitolite.
The OP liuyanghejerry approved:
Change the home path of the
gitosis
user, eg:This should change the
gitosis
repository search path.