How to install hooks in gitolite

≡放荡痞女 提交于 2019-12-03 12:28:01

In Gitolite v3 you may choose where to put your hooks editing LOCAL_CODE variable in .gitolite.rc. See the file source for more options (eg. enabling per repo custom hooks)

Then you put your hooks in the specified dir, make them executable and run gitolite setup --hooks-only.

Adam Dymitruk

you need to add an update.secondary hook in the directory then redeploy with gl-easyinstall. Take a look at the update hook that comes with gitolite. You will see that near the end, it calls update.secondary. If you provide that, it will work.

I just found out that if I copy my hook sample in /usr/share/gitolite/hooks/common/ it will be symlinked by gl-setup. Maybe in this package $GL_ADMINDIR variable is not set for some reason. Two bonus questions still stands...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!