From ca5f7fa4bfd1cc1bc7cdb7a0e60afd2db80ec16c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 10 Jan 2024 13:29:10 -0800 Subject: [PATCH] build-system: correctly test that branch was created That '-b' was exactly the wrong thing to do here... Signed-off-by: Dirk Hohndel --- scripts/get-or-create-build-nr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get-or-create-build-nr.sh b/scripts/get-or-create-build-nr.sh index 988731dbb..0a75dcae8 100644 --- a/scripts/get-or-create-build-nr.sh +++ b/scripts/get-or-create-build-nr.sh @@ -48,7 +48,7 @@ else # someone else was faster - get the number they wrote git checkout main &> /dev/null git branch -D "$SHA_BRANCH" &> /dev/null - if ! git checkout -b "$SHA_BRANCH" &> /dev/null + if ! git checkout "$SHA_BRANCH" &> /dev/null then echo "push to $SHA_BRANCH failed, but switching to it failed as well" exit 2