commit 66f7642052f95bce68f7249db7b6897750218100
parent 456124737dca9afe84f81920fe1ad4b30d368824
Author: Chris Bracken <chris@bracken.jp>
Date: Mon, 30 Aug 2021 16:51:59 -0700
Do not index repos with stagit-no-index
This matches the behaviour in the grm tool.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/post-receive.d/stagit b/post-receive.d/stagit
@@ -53,6 +53,7 @@ find "${repos_root}/." -maxdepth 1 \
-type d \
-name "*.git" \
-exec test -e "{}/git-daemon-export-ok" \; \
+ -exec test ! -e "{}/stagit-no-index" \; \
-print \
| sort -f \
| sed -e 's/"/"\\""/g' -e 's/.*/"&"/' \