On Jul 9, 2006, at 19:16, Michael Pfeiffer wrote:
> I want to use the post-commit hook and did the following until now:
>
> - renamed post-commit.tmpl to post-commit
> - edited it to use absolute paths to commit-email.pl (that is  
> located in the same hook-directory)
> - made all files executable
Sounds good to me.
> - edited commit-email.pl to use absolute paths for sendmail and  
> svnlook
> - edited commit-email.pl at the first appearance of $repos, here I  
> had to set the absolute path to my repository directory to let  
> svnlook find there pository handed over as $repos
I'm not sure why you're having to edit commit-email.pl. It's supposed  
to be a self-contained script that just works. It already uses the  
absolute path to sendmail (/usr/sbin/sendmail -- ok, if your sendmail  
is in a different place then I'd understand why you had to edit it)  
and svnlook (@SVN_BINDIR@/svnlook, where @SVN_BINDIR@ is replaced  
during installation with the correct value). $repos also looks like  
it is taken from the argument passed to the script, so you should not  
need to change the way it's used in the script; you should just pass  
your repository path to the script, exactly as the example shows:
commit-email.pl "$REPOS" "$REV" commit-watchers@example.org
If you run "env -i ./post-commit" on the command line, does it still  
work? "env -i" ignores environment variables. So if it then fails to  
work, you may still have relative paths around somewhere.
Another possibility: make sure the user under which your repository  
runs (for example the apache user if you're serving under apache) has  
the ability to read and execute the hook script and the commit-email  
script.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jul  9 19:30:24 2006