SMOLNET PORTAL home about changes
ifix issues in example scripts - stagit-gopher - A git gopher frontend. (mirror)	Err	bitreich.org	70
hgit clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/	URL:git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/	bitreich.org	70
1Log	/scm/stagit-gopher/log.gph	bitreich.org	70
1Files	/scm/stagit-gopher/files.gph	bitreich.org	70
1Refs	/scm/stagit-gopher/refs.gph	bitreich.org	70
1Tags	/scm/stagit-gopher/tag	bitreich.org	70
1README	/scm/stagit-gopher/file/README.gph	bitreich.org	70
1LICENSE	/scm/stagit-gopher/file/LICENSE.gph	bitreich.org	70
i---	Err	bitreich.org	70
1commit 77bfd42fb3c139ada3a679a62c56f6eebd38a0c2	/scm/stagit-gopher/commit/77bfd42fb3c139ada3a679a62c56f6eebd38a0c2.gph	bitreich.org	70
1parent 5a8540c7f9ec50f9fe1b5f163ccfa2d0e5ed5c0b	/scm/stagit-gopher/commit/5a8540c7f9ec50f9fe1b5f163ccfa2d0e5ed5c0b.gph	bitreich.org	70
hAuthor: Hiltjo Posthuma <hiltjo@codemadness.org>	URL:mailto:hiltjo@codemadness.org	bitreich.org	70
iDate:   Fri,  1 Mar 2019 11:50:45 +0100	Err	bitreich.org	70
i	Err	bitreich.org	70
ifix issues in example scripts	Err	bitreich.org	70
i	Err	bitreich.org	70
i- in case cd fails don't continue (don't write in previous directory).	Err	bitreich.org	70
i- post-receive: quote $(pwd) in case it has spaces.	Err	bitreich.org	70
i	Err	bitreich.org	70
ifound by shellcheck tool.	Err	bitreich.org	70
i	Err	bitreich.org	70
iDiffstat:	Err	bitreich.org	70
i  M example_create.sh                   |       2 +-	Err	bitreich.org	70
i  M example_post-receive.sh             |       2 +-	Err	bitreich.org	70
i	Err	bitreich.org	70
i2 files changed, 2 insertions(+), 2 deletions(-)	Err	bitreich.org	70
i---	Err	bitreich.org	70
1diff --git a/example_create.sh b/example_create.sh	/scm/stagit-gopher/file/example_create.sh.gph	bitreich.org	70
i@@ -31,7 +31,7 @@ for dir in "${reposdir}/"*/; do	Err	bitreich.org	70
i         printf "%s... " "${d}"	Err	bitreich.org	70
i 	Err	bitreich.org	70
i         mkdir -p "${destdir}/${d}"	Err	bitreich.org	70
i-        cd "${destdir}/${d}"	Err	bitreich.org	70
i+        cd "${destdir}/${d}" || continue	Err	bitreich.org	70
i         stagit-gopher -b "${stagitdir}/${d}" -c ".cache" "${reposdir}/${r}"	Err	bitreich.org	70
i 	Err	bitreich.org	70
i         # symlinks	Err	bitreich.org	70
1diff --git a/example_post-receive.sh b/example_post-receive.sh	/scm/stagit-gopher/file/example_post-receive.sh.gph	bitreich.org	70
i@@ -14,7 +14,7 @@ export LC_CTYPE="en_US.UTF-8"	Err	bitreich.org	70
i 	Err	bitreich.org	70
i name="$1"	Err	bitreich.org	70
i if test "${name}" = ""; then	Err	bitreich.org	70
i-        name=$(basename $(pwd))	Err	bitreich.org	70
i+        name=$(basename "$(pwd)")	Err	bitreich.org	70
i fi	Err	bitreich.org	70
i 	Err	bitreich.org	70
i # config	Err	bitreich.org	70
.
Response: text/plain
Original URLgopher://bitreich.org/0/scm/stagit-gopher/commit/77bfd42f...
Content-Typetext/plain; charset=utf-8