summaryrefslogtreecommitdiffstats
path: root/git/share/hooks/post-update.d/cgit-agefile
blob: cf9574574216a9a750c72015795a01cf5e5db259 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

set -e

agefile="$(git rev-parse --git-dir)"/info/web/last-modified

mkdir -p "$(dirname "$agefile")"
git for-each-ref --sort=-authordate --count=1 --format='%(authordate:iso8601)' >"$agefile"