Introduction
Introduction Statistics Contact Development Disclaimer Help
tfix creation and update of http bare clone - stagit - [fork] customized build …
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit 603ac9c1b962636abca16b4f000e8ef5b591c219
parent a7da01a6eb60e5ad6fa61da82e50babb57aadcf7
Author: Anders Damsgaard <[email protected]>
Date: Sat, 28 Nov 2020 00:57:00 +0100
fix creation and update of http bare clone
Diffstat:
M create-repo.sh | 5 +++--
M post-receive.sh | 5 ++---
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/create-repo.sh b/create-repo.sh
t@@ -20,8 +20,9 @@ for r in "$@"; do
read
echo "${REPLY:-$default_owner}" > "$r"/owner
ln -sf ../../post-receive.sh "$r"/hooks/post-receive
- cp "$r"/hooks/post-update{.sample,}
- chmod a+x "$r"/hooks/post-update
+ cd "/var/www/domains/src.adamsgaard.dk"
+ git clone --bare "$r" "${r}.git"
+ git update-server-info
echo "${giturl}/${r}" > "$r"/url
echo "${altgiturl}/${r}.git" > "$r"/alturl
touch "$r"/git-daemon-export-ok
diff --git a/post-receive.sh b/post-receive.sh
t@@ -71,9 +71,8 @@ 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)
+# update bare repo for static http clone through alturl
+(cd "${htmldir}" && 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
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.