From: Thierry Parmentelat Date: Tue, 22 Nov 2011 11:34:01 +0000 (+0100) Subject: add a stamp in the mirror area when done X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=d168f618282c1434350120487dacd2d82184f4fd;p=infrastructure.git add a stamp in the mirror area when done --- diff --git a/scripts/git-mirror.sh b/scripts/git-mirror.sh index 1f2a5b9..ca58ab1 100755 --- a/scripts/git-mirror.sh +++ b/scripts/git-mirror.sh @@ -191,6 +191,10 @@ function mirror_repo () { fi # success, remove previous check file if any clear_notify $REPO_DIR + # reset to branch master if exists + run -i ${REPO_DIR} git checkout master + # touch a stamp so it's easier to figure out where/if things get stuck + touch ${REPO_DIR}/MIRRORED.stamp } function usage () {