mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 05:30:45 +00:00
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:
parent
c67e9e06b6
commit
24a919aea1
@ -43,7 +43,7 @@ function sync-coreos-config() {
|
||||
continue
|
||||
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
|
||||
|
||||
# Copy files from temporary directory to host configuration directory.
|
||||
|
Loading…
Reference in New Issue
Block a user