summaryrefslogtreecommitdiff
path: root/git-hooks/post-receive.agefile
blob: 91d98eca2df9f740cee9fe40fdadee3f52915522 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

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

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