From 680d4261dfa57d2dd6b131ae65047dc00ee8261f Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 9 Apr 2019 23:02:46 -0700 Subject: scripts/commit.sh: Fix when branch doesn't already exist --- scripts/commit.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/commit.sh b/scripts/commit.sh index 7c5e3139..0d9ef12d 100644 --- a/scripts/commit.sh +++ b/scripts/commit.sh @@ -14,6 +14,7 @@ if commit=$(git -C "$repo" show-ref -s --verify "refs/heads/$branch" 2>/dev/null fi else set -- + unset commit fi if [ -z "${commit+set}" ] ; then -- cgit v1.2.3