From 19084f16cfe3dec46005142389157bca8f37af2e Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Fri, 31 Jul 2026 14:13:22 -0400 Subject: post receive hook --- configuration/gitolite/local/hooks/common/post-receive | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 configuration/gitolite/local/hooks/common/post-receive (limited to 'configuration/gitolite/local') 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 -- cgit v1.2.3