I am having issues setting up gitolite. Server is Mac OS X Server 10.5.8 and client is Mac OS X 10.6.6. Both are running git 18.104.22.168 compiled from source.
I'm following the documentation as best as I can, but it really needs a major overhaul and is confusing in places. I don't think the author dogfooded it.
I used the "root method" installation. The issue is when I run the final step:
cd; git clone git@server:gitolite-admin
Here's what's going on from the client side:
tom@client$ ssh email@example.com info hello tom, the gitolite version here is v1.5.8-22-g6bcb5c1 the gitolite config gives you the following access: R W gitolite-admin @R_ @W_ testing tom@client$ git clone firstname.lastname@example.org:gitolite-admin Cloning into gitolite-admin... Can't exec "git": No such file or directory at /usr/local/bin/gl-auth-command line 176. fatal: The remote end hung up unexpectedly
As a result, it's a lot easier to debug. Just run
ssh git@server info. If this get you the gitolite version and access info, everything is fine. If it asks you for a password, see the very first section of this document for help.
Thus I conclude that the SSH part of gitolite is properly configured.
admin@server$ su - git Password: git@server$ which git /usr/local/bin/git git@server$ which gl-auth-command /usr/local/bin/gl-auth-command git@server$ tail -n 2 /usr/local/bin/gl-auth-command $repo = "'$REPO_BASE/$repo.git'"; exec("git", "shell", "-c", "$verb $repo") unless $verb eq 'git-init';
git is available on the server as is in the git user's
I have used 'tail' to show the last two lines, 175 and 176, as apparently the last line is the one that's failing.
What the heck is wrong? I've been bashing my head into the wall with this.