开发者

Failed to start post-commit hook

I'm struggling to get a subversion post commit hook to work.

When I commit, I get the error:

Failed to start '/svn/web/hooks/post-commit' hook

I read around a bit with people that had similar problems, and they all related to the lack of开发者_高级运维 environment, or incorrect file permissions, so I ran this:

sudo -u www-data env - ./post-commit /svn/web 70

But it worked fine! I added logging to the file, which works when I run it with the above command, but not when I commit to the repo.

Any ideas? I gave everyone execute permission (chmod a+x post-commit).


It was a problem with my line endings.

 fromdos post-commit

Did the trick.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜