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

subversion post-commit hook stopped working

From: Faheem Mitha <faheem_at_email.unc.edu>
Date: 2003-10-15 19:57:30 CEST

Dear People.

I was using a post-commit hook as follows.

#! /bin/sh

if [ $(/sbin/ifconfig | grep -cs eth0) != 0 ]; then

rm -rf /home/faheem/backsvn/svn*
/usr/lib/subversion/hot-backup.py /home/faheem/svn
/home/faheem/backsvn
. /home/faheem/.keychain/${HOSTNAME}-sh
rsync -avz --partial --delete -e ssh /home/faheem/backsvn/$(ls
/home/faheem/backsvn)/ faheem@remotehost:svn/

fi

This hook worked fine with 0.26 but I just upgraded to 0.30 and it no
longer seems to work. Of course I did a dump/load between 0.26 and
0.30, so I copied it over and I may have made some subtle mistake.

The hook works fine when run on its own. Any suggestions what I might
be doing wrong?

                                                 Faheem.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 15 19:58:19 2003

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.