hooks/post-merge: Use local time for git log

Otherwise, commit timestamps may end up being in the future from the
perspective of a server that runs on UTC.
This commit is contained in:
Alex Palaistras 2021-09-22 22:37:17 +01:00
parent c67e9e06b6
commit 24a919aea1

View File

@ -43,7 +43,7 @@ function sync-coreos-config() {
continue continue
fi fi
touch -t "$(cd "$dir" && git log -n 1 --pretty=format:%cd --date=format:%Y%m%d%H%M.%S --date-order -- "$f")" -- "$f" touch -t "$(cd "$dir" && git log -n 1 --pretty=format:%cd --date=format-local:%Y%m%d%H%M.%S --date-order -- "$f")" -- "$f"
done done
# Copy files from temporary directory to host configuration directory. # Copy files from temporary directory to host configuration directory.