mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-12 16:06:17 +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
|
# someone else was faster - get the number they wrote
|
||||||
git checkout main &> /dev/null
|
git checkout main &> /dev/null
|
||||||
git branch -D "$SHA_BRANCH" &> /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
|
then
|
||||||
echo "push to $SHA_BRANCH failed, but switching to it failed as well"
|
echo "push to $SHA_BRANCH failed, but switching to it failed as well"
|
||||||
exit 2
|
exit 2
|
||||||
|
|
Loading…
Add table
Reference in a new issue