Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitosis not updating server configuration after push of configuration changes

Tags:

git

gitosis

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

like image 506
Bryan Avatar asked Dec 09 '22 19:12

Bryan


1 Answers

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.

like image 70
Phil Miller Avatar answered Apr 29 '23 07:04

Phil Miller