aboutsummaryrefslogtreecommitdiff
path: root/gitolite/post-receive
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2026-04-02 17:39:35 +0000
committeronelin <oscar@nelin.dk>2026-04-02 17:42:50 +0000
commitf458a536ac8d732e47a8dce4d92aa2f1b5a2c649 (patch)
tree7f1c538d01d55ab5bddb543eb28364dc3d790914 /gitolite/post-receive
parent2489faf7ac22f45ab92545db1216ce8cfa4fae98 (diff)
Add compiled cgit 1.3
Also includes: * Everforest theme * Automatic last-modified hooks * Update to icon and logo
Diffstat (limited to 'gitolite/post-receive')
-rw-r--r--gitolite/post-receive9
1 files changed, 9 insertions, 0 deletions
diff --git a/gitolite/post-receive b/gitolite/post-receive
new file mode 100644
index 0000000..3a3e262
--- /dev/null
+++ b/gitolite/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"