I'm trying to get Gitosis working on my Ubuntu server (from a Win7 client). It's installed, and I can connect to it via SSH, however, if when I try and push a new project, I get the following error:
ERROR:gitosis.serve.main:Repository read access denied
I since tried clearing my /home/git/ folder and starting again - but now I get that same error even when I try and grab the gitosis-admin project.
Any ideas what could cause this?
[edit] Adding the debug flag to the config file gives me this:
C:\sandbox>git push origin master
DEBUG:gitosis.serve.main:Got command "git-receive-pack '/home/git/repositories/sandbox'"
DEBUG:gitosis.access.haveAccess:Access check for 'Dan@DAN-PC' as 'writable' on 'home/git/repositories/sandbox'...
DEBUG:gitosis.group.getMembership:found 'Dan@DAN-PC' in 'gitosis-admin'
DEBUG:gitosis.access.haveAccess:Access check for 'Dan@DAN-PC' as 'writeable' on 'home/git/repositories/sandbox'...
DEBUG:gitosis.group.getMembership:found 'Dan@DAN-PC' in 'gitosis-admin'
DEBUG:gitosis.access.haveAccess:Access check for 'Dan@DAN-PC' as 'readonly' on 'home/git/repositories/sandbox'...
DEBUG:gitosis.group.getMembership:found 'Dan@DAN-PC' in 'gitosis-admin'
ERROR:gitosis.serve.main:Repository read access denied
fatal: The remote end hung up unexpectedly
[edit2]
To add extra information to this - I've just tried Gitolite and got a similar error:
Cloning into gitolite-admin...
R access for home/git/repositories/gitolite-admin DENIED to dan
(Or there may be no repository at the given path. Did you spell it correctly?)
fatal: The remote end hung up unexpectedly
That's using the same "git" user and keys. I tried changing the directory permissions, but that didn't help.