gitolite hooks - post-receive似乎不起作用 [英] gitolite hooks - post-receive doesn't seem to work

查看:362
本文介绍了gitolite hooks - post-receive似乎不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的回购协议中配置了gitolite。我看到2份挂钩文件记录在gitolite文件中。我希望服务器端的hook post-receive在有人推送到回购站时发送电子邮件。
我正在使用git-notifier。但是,当我推动时没有任何反应。我修改了这两个钩子的副本,并添加了一行来创建一个tmp文件。在将更改推送到回购站后,没有任何tmp文件存在,并且没有发送电子邮件。任何帮助是极大的赞赏。
Thanks。

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.

推荐答案

您应该运行以下命令:

You should run the following commands:

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

唯一需要修改钩子的地方是 gitolite / hooks / common 。上述命令负责更新所有存储库中的钩子。

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.

这篇关于gitolite hooks - post-receive似乎不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆