I use a the SVN post-commit-hook script from the official Trac website to update tickets the tickets. (This is the script) If a user commits something into SVN, the ticket gets the update and an E-Mail is generated. This works fine with one exception:
It seems the environment in the post-commit-hook is different from the website. If I change something in a ticket, the email looks like this:
[bla bla]
--
Ticket URL: <https://host/trac/projectname/ticket/100#comment:2>
projectname <https://host/trac/projectname>
My example project
If I change the ticket from the post-commit-hook, the amil looks like this:
[bla bla]
--
Ticket URL: </ticket/100#comment:2>
projectname <>
My example project
I manage several trac instances on this server with a global configuration in /etc/trac/trac.ini
and a local configuration on the project folders. It seems like the post-commit-hook gets a wrong environment without set the right project url. How can I set this right?