Skip to content

Commit ddd9d27

Browse files
committed
Use commiterdate instead of authordate for agefile
1 parent 92a2598 commit ddd9d27

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ansible/roles/git-mirrors/templates/update-mirrors.sh.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ for repo in $FOUND_REPOS; do
2020
mkdir -p "info/web" || { echo "Error: Failed to create info/web directory in $repo"; exit 1; }
2121

2222
git for-each-ref \
23-
--sort=-authordate --count=1 \
24-
--format='%(authordate:iso8601)' \
23+
--sort=-committerdate --count=1 \
24+
--format='%(committerdate:iso8601)' \
2525
--exclude='refs/pull/*/merge' \
2626
> info/web/last-modified || { echo "Error: Failed to write last-modified file in $repo"; exit 1; }
2727

0 commit comments

Comments
 (0)