gitolite hooks - post-receive doesn't seem to work

跟風遠走 提交于 2020-01-14 13:57:27

问题


I have gitolite configured on my repo. I see 2 copies of the hooks as documented in the gitolite literature. I would like the server-side hook post-receive to send email when someone does a push to the repo. I am using git-notifier. However, nothing happens when I push. I have modified both copies of the hooks, and I added a line to create a tmp file. After I push my changes to the repo, no tmp file is there and no email is sent. Any help is greatly appreciated. Thanks.


回答1:


You should run the following commands:

gitolite/src/gl-system-install
gl-setup

The only place you have to modify the hooks is on gitolite/hooks/common. The above commands takes care of updating the hooks in all repositories.



来源:https://stackoverflow.com/questions/4937755/gitolite-hooks-post-receive-doesnt-seem-to-work

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