Subversion hooks no longer running

Posted by Chris Lieb on Server Fault See other posts from Server Fault or by Chris Lieb
Published on 2010-05-21T17:14:33Z Indexed on 2010/05/21 17:21 UTC
Read the original article Hit count: 273

Filed under:
|
|

I don't know when this started happening, but, for some reason, none of my Subversion hooks are running anymore. I am running Subversion 1.6.9 on a Gentoo Linux machine, which has had its hooks work in the past. I am running Subversion through the svn_dav module for Apache2.2.

I modified the hook scripts that I make use of to write into a file in the /tmp directory owned by apache:apache whenever they are executed, but after making a commit, there is nothing in the file that should be written to. The scripts are executable and owned by apache:apache, so I don't think that is the issue.

Here is one of my test scripts (post-commit.sh) that isn't getting executed:

#!/bin/sh

/bin/echo post-commit >> /tmp/z_test
exit 0

After running a commit, I expect both the pre-commit.sh and post-commit.sh hooks to be run, but neither of them appear to be writing into the desired file (/tmp/z_test).

What's going on?

© Server Fault or respective owner

Related posts about subversion

Related posts about linux