Here I am again, still fighting to get this working. In this email I tried
to be as complete as possible so that someone can tell me what I'm doing.

First I created "post-commit" in "/var/lib/svn/project/hooks".

Second I copied "/usr/share/trac/contrib/trac-post-commit-hook" to
"/var/lib/svn/project/hooks"

I did "chown www-data.www-data" to both files. And also for testing purpose
I did "chmod 777" to both files, to make sure it's not a permission issue.


"/var/lib/svn/project/hooks" contains:
<START>
#!/bin/sh

# POST-COMMIT HOOK
#
# The post-commit hook is invoked after a commit. Subversion runs
# this hook by invoking a program (script, executable, binary,
# etc.) named 'post-commit' (for which
# this file is a template) with the following ordered arguments:
#
#   [1] REPOS-PATH   (the path to this repository)
#   [2] REV          (the number of the revision just committed)
#
export LD_LIBRARY_PATH=/usr/local/lib
export PYTHONPATH=/usr/local/lib/python2.4

REPOS="$1"
REV="$2"

/var/lib/svn/P0001/hooks/trac-post-commit-hook -p "$REPOS" -r "$REV" >>
post-commit.log
<END>

With TortoiseSVN I made a change in subversion, in the comment I added "refs
#1", revision 19 is created. But nothing happens in trac. Also no log
information is written.

When I run the post-commit hook from the command line(sudo -u www-data
/var/lib/svn/project/hooks/post-commit /var/lib/trac/project/ 19) everything
goes well, and the SVN commit message is added to the specified Trac Ticket.
The "post-commit.log" file is also created(empty,nothing goes wrong?).

So the Post-commit hooks is not called when I do a commit wit TortoiseSVN,
so I think I forgot something. But I read the documentation over and over
but I can't find what happened.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to