From e769f4208b15ea144e269617dc83f132533a670b Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Thu, 15 Jan 2004 23:33:35 +0000 Subject: Attempt to fix the annoying trigger bug where a notification mail goes out even when there arent any csets being pushed (e.g. upstream is ahead of you.) BKrev: 4007234fTtfh9FS2DL6o83FFvvFZ5w --- BitKeeper/triggers/post-outgoing.ciabot | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BitKeeper/triggers/post-outgoing.ciabot b/BitKeeper/triggers/post-outgoing.ciabot index 8e1a327c71..0657f9a825 100644 --- a/BitKeeper/triggers/post-outgoing.ciabot +++ b/BitKeeper/triggers/post-outgoing.ciabot @@ -86,6 +86,7 @@ fi if [ X$BK_CSETLIST != X ] then +if ! test -z "`cat $BK_CSETLIST`"; then echo "Sending notification mail to $COMMITADDRESS..." ( @@ -101,4 +102,5 @@ echo repository={green}${R_OUT}{normal} $U_OUT ) | mail -s "Announce `echo -n $IRCCHANNEL | sed 's,.*/,,'`" $COMMITADDRESS echo "done." fi +fi exit 0 -- cgit v1.2.3