I've set up gitosis using the tutorial privided at:
http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
I found that I was unable to push and create a new repository after adding the appropriate permissions in the gitosis.conf. I would continually get "read access Denied" error. I ended up checking the actual repository on the server which contained my updated gitosis.conf file. However when I checked the '.gitosis.conf' file located in the home folder of the gitosis user, I found that it was not updated. Once I replaced the contents of this file with the one in the repository I was able to create and use the new repository with no problems.
Does anyone know what could be causing this? I know that gitosis uses a post-update hook to update the server appropriately, so I think the problem most likely resides around that.
Thanks in advance! Bryan
Check the permissions on the post-update hook in the repository. It must be executable, and the published version of gitosis doesn't ensure that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With