From e7ede8aff43f17b73cec9a13a18c00fe9831590b Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sat, 18 Nov 2023 20:37:41 -0500 Subject: [PATCH] Add a script to fix gitweb last-modified date --- scripts/gitweb-fix-modification-date | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 scripts/gitweb-fix-modification-date diff --git a/scripts/gitweb-fix-modification-date b/scripts/gitweb-fix-modification-date new file mode 100644 index 0000000..5924675 --- /dev/null +++ b/scripts/gitweb-fix-modification-date @@ -0,0 +1,7 @@ +#! /bin/bash +set -e + +LAST_MODIFIED_FILE="$(git rev-parse --git-dir)"/info/web/last-modified + +mkdir -p "$(dirname "$LAST_MODIFIED_FILE")" +git for-each-ref --sort=-authordate --count=1 --format='%(authordate:iso8601)' >"$LAST_MODIFIED_FILE" \ No newline at end of file