Modify

Opened 6 years ago

Last modified 5 years ago

#4038 new defect

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

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

Description

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 (2)

comment:1 Changed 6 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 tohttp://trac.edgewall.org/browser/branches/0.11-stable/contrib/trac-post-commit-hook
  2. Alter the setup.py to include hooks/trac-post-commit-hook
  3. Update svnpolicies/hooks/post-commit.py (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 5 years ago by anonymous

  • Owner changed from andrei2102 to doki_pen

Add Comment

Modify Ticket

Action
as new The owner will remain doki_pen.
Author


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

 
Note: See TracTickets for help on using tickets.