summaryrefslogtreecommitdiff
path: root/BitKeeper
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-01-15 23:33:35 +0000
committerChris Larson <clarson@kergoth.com>2004-01-15 23:33:35 +0000
commite769f4208b15ea144e269617dc83f132533a670b (patch)
treee4b362ce28eb9ce1a839c62c905936766b830685 /BitKeeper
parent9f1c2dcf7fc3edecd25f7cb02f0712ead498147d (diff)
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
Diffstat (limited to 'BitKeeper')
-rw-r--r--BitKeeper/triggers/post-outgoing.ciabot2
1 files changed, 2 insertions, 0 deletions
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