Linux - Subversion - 提交后挂钩未执行
我正在运行 Arch Linux。我已经安装了 Subversion 并将其设置为与 https 一起使用,一切似乎都工作正常,除了我的钩子。
我有一个钩子,它是 path/to/repo/hooks/post-commit。
它是可执行的。
我已经包含了一条日志记录语句:echo“Complete”。 >>> /path/hook.log
当从命令行以 http 用户身份执行时,脚本工作正常,包括日志语句。
当我提交更改时,我看不到日志的添加或脚本其余部分的任何操作。
我可能配置错误什么? 有任何日志可以检查吗?
I am running Arch linux. I have installed Subversion and set it up for use with https everything seems to working fine, with the exception of my hooks.
I have one hook, it is path/to/repo/hooks/post-commit.
It is executable.
I have included a logging statement with: echo "Complete." >> /path/hook.log
When executed as the http user from the command line the script works fine, including the log statement.
When I commit changes I do not see the addition to the log or any of the actions from the rest of the script.
What might I have mis-configured?
Are there any logs to check for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许您需要为 /path/hook.log 设置适当的权限,以便执行 svn-hook 的用户可以写入该文件。
但也许您可以向我们提供有关该钩子的更多信息。
Maybe you need to set the proper permission to the /path/hook.log, so as the user that execute the svn-hook, could writte into that file.
But maybe you could give us a litle more information about that hook.