summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsh/upd4
1 files changed, 4 insertions, 0 deletions
diff --git a/sh/upd b/sh/upd
index 32a668e..cc9dd46 100755
--- a/sh/upd
+++ b/sh/upd
@@ -43,6 +43,10 @@ backup () {
*) git push;;
esac
done
+ # always go back to a specific branch, because future new branshes may
+ # make previous git checkout checkout to that new branch cause rsync
+ # have to sync that new branch instead
+ git checkout master
# git checkout will change mtime, need to change back so rsync won't think it needs to backup these files
# https://stackoverflow.com/q/1964470/9008720
# https://stackoverflow.com/q/21735435/9008720