stagit-gopher

static git page generator for gopher (mirror)
git clone git://git.2f30.org/stagit-gopher.git
Log | Files | Refs | README | LICENSE

commit 68d5f34fe5aadad1b2272f4797ab18bd2938a962
parent e7bf2942d6f37ffe0ace237d397abf7480e5c945
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 25 Nov 2017 16:04:24 +0100

post-receive: fix warning in script for example when pushing deleted tags

the "new" variable would be zero:
	remote: fatal: bad object 0000000000000000000000000000000000000000

NOTE: when pushing new tags the "old" variable would be zero, this was
      already fixed.

Diffstat:
example_post-receive.sh | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/example_post-receive.sh b/example_post-receive.sh @@ -37,6 +37,7 @@ cd "${dir}" || exit 1 force=0 while read -r old new ref; do test "${old}" = "0000000000000000000000000000000000000000" && continue + test "${new}" = "0000000000000000000000000000000000000000" && continue hasrevs=$(git rev-list "${old}" "^${new}" | sed 1q) if test -n "${hasrevs}"; then