I'm trying to setup gitolite on my server which is a mac mini running os X leopard (non-server version). I believe I correctly installed gitolite using the root installation method detailed on https://github.com/sitaramc/gitolite/blob/pu/doc/1-INSTALL.mkd#_important_points_to_note . The only big difference is that my git user's home directory is set to an external drive connected to the mac mini, in my case /Volumes/Drobo/git . I'm getting stuck on the part where I try to clone gitolite-admin into my local machine's user directory (running os x lion).
I receive this error:
Cloning into gitolite-admin...
Can't exec "git": No such file or directory at /usr/local/bin/gl-auth-command line 192.
fatal: The remote end hung up unexpectedly
I have tried the things suggested at gitolite unable to exec git but they have not panned out.
running ssh git@serverAddress info
returns
hello latca, the gitolite version here is v2.0.3-28-g7c8c5a8
the gitolite config gives you the following access:
R W gitolite-admin
@R_ @W_ testing
Also suggested in the thread I've added .bashrc file into the git user's home directory on the server with a single line export PATH=/usr/local/bin:$PATH
and that has not worked either
line 192 from gl-auth-command is exec("git", "shell", "-c", "$verb $repo") unless $verb eq 'git-init';
I'm still a commandline neophyte so please let me know what other information you guys need to help diagnose the problems.
Much Thanks in Advance
Gitolite 2.x
If git is not in the default PATH, then you can set
$GIT_PATH
in your gitolite user’s~/.gitolite.rc
.The default
.gitolite.rc
comes with this line:If your Git installation is under
/usr/local
(so that you have/usr/local/bin/git
), then replace the above line with this one:See “support for git installed outside default PATH” in the Gitolite documentation.
Gitolite 3.x
The 3.x version of Gitolite is a complete rewrite. One of the incompatibilities with respect to the 2.x series is the lack of
$GIT_PATH
. From the “incompatible features”, “high impact” section of the migration documentation:So, for Gitolite 3.x, the
~/.gitolite.rc
change should be something like this:(somewhere before the final
1;
line).bashrc
is only invoked for interactive shells. Try addingexport PATH=/usr/local/bin:$PATH
to~/.bash_profile
.