diff options
Diffstat (limited to 'git-hooks')
-rwxr-xr-x | git-hooks/post-receive.agefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/git-hooks/post-receive.agefile b/git-hooks/post-receive.agefile new file mode 100755 index 0000000..91d98ec --- /dev/null +++ b/git-hooks/post-receive.agefile @@ -0,0 +1,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" |