We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c88e29 commit 92a2598Copy full SHA for 92a2598
1 file changed
ansible/roles/git-mirrors/templates/update-mirrors.sh.j2
@@ -17,5 +17,13 @@ for repo in $FOUND_REPOS; do
17
fi
18
echo "Updated repository."
19
20
+ mkdir -p "info/web" || { echo "Error: Failed to create info/web directory in $repo"; exit 1; }
21
+
22
+ git for-each-ref \
23
+ --sort=-authordate --count=1 \
24
+ --format='%(authordate:iso8601)' \
25
+ --exclude='refs/pull/*/merge' \
26
+ > info/web/last-modified || { echo "Error: Failed to write last-modified file in $repo"; exit 1; }
27
28
cd -
29
done
0 commit comments