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.
精彩评论