首页 > 技术文章 > svn hooks 实现自动更新

oxspirt 2018-04-19 16:54 原文

搞来搞去,原来是hooks 下面的脚本名称必须是post-commit才可以, 写成fly-commit一直不行。晕死~~~

https://serverfault.com/questions/144181/subversion-hooks-no-longer-running

--------------------------------------------------------------------------------------------------------------------------------

For some reason, Subversion no longer seems to accept arbitrary extensions on hook scripts. I did have the hooks named like 'post-commit.sh', but Subversion no longer seems to look for these. After renaming the hook script to 'post-commit', Subversion ran it right away.

I'm not sure what revision to Subversion changed this behavior, and it is not mentioned in the CHANGES file for 1.6.11.

推荐阅读