From eefd237b94187071dedbd4928da985f2916684d7 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 23 Jul 2025 16:49:54 +0800 Subject: upd git checkout to master before restore-mtime --- sh/upd | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3-70-g09d2