diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-07-31 14:13:22 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-07-31 14:13:22 -0400 |
| commit | 19084f16cfe3dec46005142389157bca8f37af2e (patch) | |
| tree | 269bd231bc47854f56b46ef0ecb85186d416b48e /configuration/gitolite/local/hooks/common/post-receive | |
| parent | 52cfed86c2d2a5717da260ad3e95761660329666 (diff) | |
post receive hook
Diffstat (limited to 'configuration/gitolite/local/hooks/common/post-receive')
| -rwxr-xr-x | configuration/gitolite/local/hooks/common/post-receive | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configuration/gitolite/local/hooks/common/post-receive b/configuration/gitolite/local/hooks/common/post-receive new file mode 100755 index 0000000..71e1895 --- /dev/null +++ b/configuration/gitolite/local/hooks/common/post-receive @@ -0,0 +1,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"
\ No newline at end of file |
