Hi all,

I tried to setup a psot-commit hook, so I used the trac-post-commit-
hook.py (which I found here:
http://trac.edgewall.org/browser/trunk/contrib/trac-post-commit-hook?rev=8369)
and moved it to "/trac/project/contrib".

Furthermore I integrated this hook in the svn repository:
>>
export LD_LIBRARY_PATH=/usr/lib
export PYTHONPATH=/usr/lib/python2.4
SVNLOOK=/usr/bin/svnlook

REPOS="$1"
REV="$2"
LOG=`$SVNLOOK log -r "$REV" "$REPOS"`
AUTHOR=`$SVNLOOK author -r "$REV" "$REPOS"`
TRAC_ENV='/trac/project'

/trac/project/contrib/trac-post-commit-hook.py \
  -p "$TRAC_ENV"  \
  -r "$REV"       \
  -u "$AUTHOR"    \
  -m "$LOG"
<<

If I try to commit something an refer a ticket, like:
svn commit -m 'test für post commit, refs #110'
I end up with a warning:
'post-commit' hook failed with error output:

The output is actually empty. The delivered trac-post-commit-hook.py
is set being executable, so I do not what's wrong with that...

Any help would be appreciated. Thanks!



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to