aboutsummaryrefslogtreecommitdiff
path: root/configuration/gitolite/local/hooks/common/post-receive
blob: 71e189553cb454ab4e6938543f2c064ce5bc539f (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

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"