only add repos with .git suffix to index - stagit-gopher - [fork] static git page generator for gopher
HTML git clone https://git.drkhsh.at/stagit-gopher.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit cb12dce290708f6fd1bee7255d7e09e799f9f495
DIR parent 7ed46f376375c2caa11015cd70db459bcac03114
HTML Author: drkhsh <me@drkhsh.at>
Date: Sat, 19 Jul 2025 03:30:07 +0200
only add repos with .git suffix to index
Diffstat:
M example_post-receive.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/example_post-receive.sh b/example_post-receive.sh
@@ -64,7 +64,7 @@ fi
stagitdir=$(printf "%s" "${stagitdir}" | sed 's@[/]*$@@g')
# make index.
-stagit-gopher-index -b "${stagitdir}" "${reposdir}/"*/ > "${destdir}/index.gph"
+stagit-gopher-index -b "${stagitdir}" "${reposdir}/"*.git/ > "${destdir}/index.gph"
# make pages.
stagit-gopher -b "${stagitdir}/${d}" -c "${cachefile}" \