diff options
author | marlonivo <email@marlonivo.xyz> | 2025-05-26 10:16:24 +0200 |
---|---|---|
committer | marlonivo <email@marlonivo.xyz> | 2025-05-26 10:16:24 +0200 |
commit | 80c6fd08dfd16df4d4043b5e6b20366883d14c23 (patch) | |
tree | 4e17dd656ee8fdcc13da32edbef2aa07660224c7 | |
parent | a8313835d576ed22514eea689fa185ce9fcdf824 (diff) |
-rw-r--r-- | hooks/post-receive | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hooks/post-receive b/hooks/post-receive new file mode 100644 index 0000000..3a3e262 --- /dev/null +++ b/hooks/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" |