尝试向 gitolite 中的存储库添加新的 update.secondary 挂钩,现在 git Push 失败
远程:未定义的子例程 &main::repo_rights 在 hooks/update 第 41 行调用。 远程:错误:钩子拒绝更新
为了解决这个问题,我已经从我的所有存储库中删除了更新钩子,但我知道它们现在是开放的。
我运行了 gl-setup,我的机器上可能有混合版本的 gitolite。我担心我运行的 gl-setup 版本与我当前运行的版本不同。我不知道该怎么说。请帮忙。 :-(
remote: Undefined subroutine &main::repo_rights called at hooks/update line 41.
remote: error: hook declined to update
I have removed the update hook from all of my repos in order to get around this, but I know that they are now wide open.
I ran gl-setup, and I may have mixed versions of gitolite on my machine. I am afraid that I ran the gl-setup from a version that is different than the one I am running currently. I am not sure how to tell. Please help. :-(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
更新,对于更新版本的 Gitolite(即 V3.x 或更高版本),官方文档为:“添加您自己的更新挂钩",它使用 VREF(虚拟参考)。
Update, for a more recent version of Gitolite (namely a V3.x or more), the official documentation would be: "adding your own update hooks", and it uses VREFs (virtual refs).