mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:43:24 +00:00
build-system: correctly test that branch was created
That '-b' was exactly the wrong thing to do here... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
744257149f
commit
ca5f7fa4bf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue