Skip to content

Commit

Permalink
use the main branch's commit time
Browse files Browse the repository at this point in the history
  • Loading branch information
eldobbins committed Mar 31, 2024
1 parent 1c314f5 commit 1848907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/fix-timestamps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# https://github.com/quarto-dev/quarto-cli/discussions/5899#discussioncomment-7673260

git ls-tree -r --name-only HEAD | while read filename; do
unixtime=$(git log -1 --format="%at" -- "${filename}")
unixtime=$(git log main -1 --format="%at" -- "${filename}")
touchtime=$(date -d @$unixtime +'%Y%m%d%H%M.%S')
touch -t ${touchtime} "${filename}"
done

0 comments on commit 1848907

Please sign in to comment.