tpost-receive.sh: do fetch instead of pull on bare http repo - stagit - [fork] customized build of stagit, the static git page generator
HTML git clone git://src.adamsgaard.dk/stagit
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 2f7c96a6b73240a0bc6063e437df6bbd7ac069c3
DIR parent 405e3a2e7452e0a09a9e0947b2381715890b3954
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sat, 28 Nov 2020 01:00:08 +0100
post-receive.sh: do fetch instead of pull on bare http repo
Diffstat:
M post-receive.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/post-receive.sh b/post-receive.sh
t@@ -73,7 +73,7 @@ stagit -c "${cachefile}" "${reposdir}/${r}"
# update bare repo for static http clone through alturl
(cd "${htmldir}" && cd "${r}.git" && \
- git pull >/dev/null && git update-server-info)
+ git fetch >/dev/null && git update-server-info)
# disallow access to file and commit contents in parent robots.txt
if ! grep -q "Disallow: /${r}/" "${destdir}/robots.txt"; then