Modify

Opened 8 years ago

Closed 2 months ago

#5281 closed enhancement (wontfix)

TRAC_CODE_PATH is not required for TracSvnPoliciesPlugin

Reported by: anonymous Owned by:
Priority: normal Component: TracSvnPoliciesPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by Ryan J Ollos)

Current TracSvnPoliciesPlugin requires svnpolicy.conf to set a variable TRAC_CODE_PATH before building the plugin. On further examination, the only reason this variable is required is for the post-commit hook to find the trac-post-commit-hook script.

Instead, the reference in svnpolicies/hooks/post-commit.py ...

return run_command([TRAC_CODE_PATH + os.path.sep +'contrib' + os.path.sep + 'trac-post-commit-hook',

... should instead be ...

return run_command([str(trac_env) + os.path.sep +'contrib' + os.path.sep + 'trac-post-commit-hook',

... and that will take care of that.

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by anonymous

Owner: changed from Culapov Andrei to Robert Corsaro

comment:2 Changed 22 months ago by Ryan J Ollos

Owner: Robert Corsaro deleted

comment:3 Changed 2 months ago by Ryan J Ollos

Description: modified (diff)

comment:4 Changed 2 months ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

TRAC_CODE_PATH is not the same as the Trac environment directory.

Modify Ticket

Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.