I am using Gitolite to manage my git repositories. And I also use a third-party web application to display the repositories.
However each time I do a git push --all git@myserver.com:myproject the third-party web application can not have access to the repository files. So I need to run each time chmod go+rx -R /path/to/the/repository/folder to see the repository.
I have set git config core.sharedRepository all but still is not remembering the permissions after git push.
How can I solve this problem?
You could define a hook to your gitolite environment in order to update a non-bare pos (with the right ACL) from your bare repo managed by gitolite.
As long as you don’t use the
updatehook (in Gitolite V3), you can define anpost-receivehook in which you would do those tasks.That being said, check also if the variable
REPO_UMASKUMASKin your gitolite.rc has any bearing on this issue:(Note:
REPO_MASKgotUMASKwith GitoliteV3 or ‘g3’)