From 7a8c6192d5f76b521d6f307bf2227a18508bf5d5 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Fri, 8 May 2020 09:22:25 -0700 Subject: mastermirror-staging: use newer git-restore-mtime Signed-off-by: Robin H. Johnson --- mastermirror-staging.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mastermirror-staging.sh b/mastermirror-staging.sh index 22c76aa..d929aa2 100755 --- a/mastermirror-staging.sh +++ b/mastermirror-staging.sh @@ -24,7 +24,9 @@ GIT_CL="${GIT} clone -q" GIT_PL="${GIT} pull -q --ff-only --no-stat --no-rebase" WGET="/usr/bin/wget --timeout=2 --quiet --timestamping" -GIT_RESTORE_MTIME="/usr/lib/python-exec/python3.6/git-restore-mtime -q -m -c --first-parent" + +GIT_RESTORE_MTIME="$(find /usr/lib/python-exec/python*/ -maxdepth 1 -name git-restore-mtime |sort -r |head -n1)" +GIT_RESTORE_MTIME_ARGS="-q -m -c --first-parent" rc=0 for cmdname in \ @@ -93,7 +95,7 @@ fetch_git() { cd "${targetdir}" || return 1 $GIT fetch -q --force origin master || return 1 $GIT reset -q --hard origin/master || return 1 - $GIT_RESTORE_MTIME || return 1 + $GIT_RESTORE_MTIME $_GIT_RESTORE_MTIME_ARGS || return 1 TZ=UTC $GIT log -1 --date=iso-strict-local --format='%H %ct %cd' >${timestampfile} } -- cgit v1.2.3-65-gdbad