From: Barış Metin Date: Thu, 4 Nov 2010 08:45:54 +0000 (+0100) Subject: remove check file just after pushing to branches X-Git-Tag: foo~62 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bfe46f416290f31d01e5a15dc3d015a5d47808e4;p=infrastructure.git remove check file just after pushing to branches --- diff --git a/scripts/git-mirror.sh b/scripts/git-mirror.sh index 029fcab..949234f 100755 --- a/scripts/git-mirror.sh +++ b/scripts/git-mirror.sh @@ -139,11 +139,12 @@ function mirror () { else run "git push --tags local_master" ${REPO_DIR} push_all_branches $NAME local_master $REPO_DIR + + # success, remove previous check file if any + CHECK_FILE=$REPO_DIR/$NOTIFIED_FILE + rm -f $CHECK_FILE fi fi - - CHECK_FILE=$REPO_DIR/$NOTIFIED_FILE - rm -f $CHECK_FILE done }