I want to use the standard Trac post-commit-hook for SVN.
I'm using Trac 0.11.4 and have downloaded this hook from their site. I've put it into /usr/local/bin/
and chmod +x
'ed it.
The post-commit
hook in /var/svn/myrepo/hooks/
looks just as Trac Guide advises:
#!/bin/sh
REPOS="$1"
REV="$2"
TRAC_ENV="/var/trac/mytracenv"
/usr/bin/python /usr/local/bin/trac-post-commit-hook -p "$TRAC_ENV" -r "$REV"
Trac environment directory /var/trac/mytracenv
is writable for Subversion user. I'm running standalone svnserve
, no Apache.
If I run
/usr/bin/python /usr/local/bin/trac-post-commit-hook -p /var/trac/mytracenv -r <somerev>
manually as Subversion user, it works as it should. However if I do a commit (using TortoiseSVN) it says:
Error post-commit hook failed (exit code 255) with no output.
What's the problem?