tfix creation and update of http bare clone - stagit - [fork] customized build of stagit, the static git page generator
 (HTM) git clone git://src.adamsgaard.dk/stagit
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 603ac9c1b962636abca16b4f000e8ef5b591c219
 (DIR) parent a7da01a6eb60e5ad6fa61da82e50babb57aadcf7
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       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(-)
       ---
 (DIR) 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
 (DIR) 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