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

Re: post-commit hook fails !!

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Fri, 26 Jun 2009 15:03:52 -0500

On Jun 26, 2009, at 11:34, Hilco Wijbenga wrote:

> 2009/6/26 Himanshu Raina <raina_himanshu_at_yahoo.com>:
>> DIR=`/usr/local/subversion-1.5/bin/svnlook dirs-changed $REPOS -r
>> $REV | cut
>> -d"/" -f1 | uniq`
>
> "cut" and "uniq" probably can't be found. Use their full path as you
> do for "svnlook".

True, but I'm also surprised at the error "Warning: Failed to start '/
usr/local/svn/rr_code/hooks/post-commit' hook" which I don't remember
seeing before. It's as if it hasn't even begun to run the hook. Make
sure the hook script has 755 permissions or at least is executable by
the user who's serving the repository.

Also, on this line you showed:

On Jun 26, 2009, at 02:21, Himanshu Raina wrote:

> usr/bin/perl /usr/local/svn/rr_code/hooks/commit-email.pl "$REPOS"
> "$REV" -s "rLogin" himanshu.raina_at_yahoo.com

you appear to be missing the initial "/" on "/usr/bin/perl". Consider
defining more variables for the path to perl, the path to the commit-
email.pl script, and the path to svnlook so that if you ever need to
change the paths they're all in one place at the top of the script.

And consider using mailer.py instead; commit-email.pl is deprecated.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2365832

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-26 22:05:12 CEST

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.