Introduction
Introduction Statistics Contact Development Disclaimer Help
tpost-receive.sh: create bare dir for https clone - stagit - [fork] customized …
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit 907ac1bf0ed6720185fdfb55c14363fd50909e09
parent 308c83741eabd65b8d4362b81fe6ab5ac5011e81
Author: Anders Damsgaard <[email protected]>
Date: Sat, 28 Nov 2020 00:47:45 +0100
post-receive.sh: create bare dir for https clone
Diffstat:
M post-receive.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/post-receive.sh b/post-receive.sh
t@@ -71,6 +71,10 @@ stagit-index "${reposdir}/"*/ > "${destdir}/index.html"
# make pages.
stagit -c "${cachefile}" "${reposdir}/${r}"
+# make bare repo for https clone through alturl
+(cd "${htmldir}" && git clone --bare "${reposdir}/${r}" "${r}.git" && \
+ cd "${r}.git" && git update-server-info)
+
# disallow access to file and commit contents in parent robots.txt
if ! grep -q "Disallow: /${r}/" "${destdir}/robots.txt"; then
printf "Disallow: /%s/file/\nDisallow: /%s/commit/\n" \
t@@ -96,7 +100,7 @@ if test "${force}" = "1"; then
fi
# make index.
-stagit-gopher-index -b "${gopherstagitdir}" "${reposdir}/"*/ > "${destdir}/ind…
+stagit-gopher-index -b "${gopherstagitdir}" "${reposdir}/"*/ > "${gopherdestdi…
# make pages.
stagit-gopher -b "${gopherstagitdir}/${d}" -c "${cachefile}" "${reposdir}/${r}"
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.