post-commit hook fails !!
From: Himanshu Raina <raina_himanshu_at_yahoo.com>
Date: Fri, 26 Jun 2009 12:51:52 +0530 (IST)
Hi,
I have hook script which sends out mail everytime a commit is done to the repo. I have multiple sub-repositories / trunks under the head Repo. The structure is something like this
While committing the code I get the following error. The post commit hook is given below
#!/bin/sh
REPOS="$1"
DIR=`/usr/local/subversion-1.5/bin/svnlook dirs-changed $REPOS -r $REV | cut -d"/" -f1 | uniq`
if [ "$DIR" == "nLogin" ]
then
/usr/bin/perl /usr/local/svn/rr_code/hooks/commit-email.pl "$REPOS" "$REV" -s "nLogin changes" himanshu.raina_at_yahoo.com
else
if [ "$DIR" == "rLogin" ]
then
usr/bin/perl /usr/local/svn/rr_code/hooks/commit-email.pl "$REPOS" "$REV" -s "rLogin" himanshu.raina_at_yahoo.com
else
echo "No changes done"
fi
[root_at_localhost ReleaseNew]# svn commit -m "done"
Committed revision 11150.
Warning: Failed to start '/usr/local/svn/rr_code/hooks/post-commit' hook
Regards
ICC World Twenty20 England '09 exclusively on YAHOO! CRICKET http://cricket.yahoo.com
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
|
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.