[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Can't get commit-email to work automatically

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-11-13 19:56:16 CET

On Nov 13, 2006, at 08:36, Jon Trauntvein wrote:

> I am maintaining a subversion server on a Fedora core 4 machine
> (subversion 1.2.3) and use access the server using the svnserve --inet
> protocol. I have been attempting in vain to make make the post-commit
> hook invoke the commit-email.pl program that I found in
> /usr/share/doc/subversion-1.2.3/tools/hook-scripts but see no results
> when commits are made. I can however make the script work if invoked
> by hand as in the following:
>
> env - ./post-commit /home/group/svn 936
>
> In this case, the expected email appears. Does anyone have any clue
> what I am doing wrong?

Could be several things.

Is the hook script itself being executed? Is its executable bit set
and named correctly? If you write to a log file from within the hook
script (specifying the absolute path to the log file), does the log
file get written to?

Are you specifying the absolute path to the commit-email.pl script?
Relative paths do not work in hook scripts (on non-Windows systems)
because the PATH variable is empty when the hooks run.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 13 19:57:27 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.