Edgewall Software

Opened 17 years ago

Closed 17 years ago

#5868 closed defect (worksforme)

trac-post-commit-hook does not work — at Version 1

Reported by: leon.zhang@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.10.4
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Emmanuel Blot)

I have Trac 0.10.4 installed on a Fedora 6 machine. My trac is authenticated aganist Windows AD (through LDAP). I am trying to make trac-post-commit-hook work for me, unfortunately I always get 'Unexpected error while processing ticket ' when maually type './post-commit /opt/trac/myprojectname 8'.

I have trac-post-commit-hook in /opt/subversion/repository/myprojectname/hooks. I also modified post-commit file as below. both trac-post-commit-hook and post-commit is owned by apache user. so do my trac project folder and subversion repository folder.

No matter what parmeters I pass to 'post-commit' script, I always get the error 'Unexpected error while processing ticket '.

Leon

#!/bin/sh

REPOS="$1"
REV="$2"

/usr/bin/python /etc/trac/trac-post-commit-hook -p "$REPOS" -r "$REV"

Change History (1)

comment:1 by Emmanuel Blot, 17 years ago

Description: modified (diff)
Resolution: worksforme
Status: newclosed
Version: 0.10.4

Please define the "Version" field to the appropriate value when you submit a new ticket

This seems to be an installation issue. Please post details about this issue to the MailingList, do not forget to copy a typical log message you provide to SVN when you commit a change, as well as the relevant part of your Trac log file.

Note: See TracTickets for help on using tickets.