On Monday, July 3, 2017 at 2:26:33 PM UTC-4, JST wrote: > > I am using "trac-svn-hook" and I am able to view some logs. > > I am receiving the following error "post-commit hook failed (exit code 2) > with no output." > > So I am still able to commit and update to the repository I am just not > able to "link/ref" ticket #'s and have it linked to the corresponding > ticket. > > From my research it seems as if the common failure is with "exit code 2 > with output" not without. Any suggestions? >
You could try running the script manually after changing to the users under which your webserver runs. If the webserver user is www-data, that would be something like: su - www-data -c '/path/to/svn/hook/script "$REPOS" "$REV"', where $REPOS and $REV have been replaced with a valid repository and revision. >From the [repositories] configuration you showed, it looks like you are using the default repository and have added an alias "my-project". I'd try using both "(default)" and "my-project" as the repository name in your testing. - Ryan -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
