Opened 8 years ago

Last modified 18 months ago

#4038 new defect

trac-post-commit-hook have to be installed for full support

Reported by: gonzague.reydet@… Owned by:
Priority: normal Component: TracSvnPoliciesPlugin
Severity: minor Keywords:
Cc: Trac Release: 0.11


For full support of the implemented functionalities, this plugin needs the trac-post-commit-hook installed in the trac source path, under the contrib folder. This should be noted in the installation procedure.

If no you will obtain the following warning message: 'post-commit' hook failed with error output: /bin/sh: /PATH/TO/TRAC/SOURCE/contrib/trac-post-commit-hook: No such file or directory

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by anonymous

As detailed in #5281, TRAC_CODE_PATH is required to show where the post-commit-hook exists. Here is a proposed procedure to be more automatic on installation (that must be checked in):

  1. Add an external on svnpolicies/hooks/trac-post-commit-hook pointing to
  2. Alter the to include hooks/trac-post-commit-hook
  3. Update svnpolicies/hooks/ (as listed in #5281) with this alternate:
    return run_command([str(trac_env) + os.path.sep +'hooks' + os.path.sep + 'trac-post-commit-hook',

... and one last step, which I can't figure out, is where in the plugin to add code to copy /svnpolicies/hooks/trac-post-commit-hook to the Trac environment's hooks directory. For now I just manually copy the file in there.

comment:2 Changed 7 years ago by anonymous

  • Owner changed from andrei2102 to doki_pen

comment:3 Changed 18 months ago by rjollos

  • Owner doki_pen deleted

Add Comment

Modify Ticket

as new The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.