I have this problem:
I could git clone [email protected]:myrepo
repos on my gitolite server. After that I installed git-daemon to be able to do the same with git protocol. Now I can git clone git://myserver.com/myrepo
only those repos which has not been cloned with ssh protocol.
For the other repos I get:
Cloning into 'myrepo'...
fatal: The remote end hung up unexpectedly
At the same time I didn't see those repositories on gitweb, but I did:
usermod -a -G git www-data
# where www-data is the user that hosts apache2
chmod -R 0755 /path/to/my/gitolite/repositories/
And now I see all the repos on gitweb.
I guess those issues are related, but I can't find out why or how.
I don't have any complicated .gitolite.rc
configuration, I only changed UMASK from 0077 to 0027
All repositories belong to git
user in git
group.
If you need any more details, just ask for them :) Any help or suggestion appretiated!
I misconfigured the git-daemon. In the /etc/sv/git-daemon/run
file I had -ugitdaemon switch
instead of -ugitdaemon:gitolite
.
This article lead me to solve the problem.