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