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

post-commit hook doesn't execute

From: Bryan Dyck <bdyck_at_mac.com>
Date: 2005-06-07 21:47:46 CEST

Hi all...

I've recently been tweaking my repository to make use of the mailer.py
script to send notifications of repository activity, and am beginning
to think I'm losing my mind.. As far as I can see, I've done things in
a pretty sensible fashion, but the post-commit hook doesn't seem to
execute, and I see no trace of error in any logfiles.

I'm running OS X 10.3.9 and Subversion v1.1.3 behind Apache 2.0.53
(both installed via fink). If it matters, I'm also using an FSFS
repository and am using Postfix for SMTP. Each of the parts works fine
- the repository has been functioning flawlessly, as has Apache, and I
use Postfix all the time with nary a hitch. However, when I throw the
post-commit hook into the mix, it does absolutely nothing, although I
have double and triple-checked that the scripts are owned and
executable by the Apache user.

Here are the relevant bits from mailer.conf:

# I know the script says that it prefers the mail_command option, but
Postfix's sendmail compatibility command
# is only executable by root
smtp_hostname = localhost

from_addr = do_not_reply@assistacare.ca

# Custom group
for_repos = /srv/subversion/repos
commit_subject_prefix = [svn:commit]
propchange_subject_prefix = [svn:propchange]
to_addr = bdyck@mac.com

One thing that nags at me is the 'for_repos' variable; just to confirm,
is it supposed to point to the absolute filesystem path to the
repository, or am I missing something? :)

The post-commit hook script contains the following command:

# And yes, the $REPOS and $REV var assignments are present. ;)
./mailer.py commit "$REPOS" "$REV" mailer.conf

Thanks in advance for any assistance...


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 7 21:50:25 2005

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.