mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-02-20 20:46:52 +00:00
fix lack of error when switching to an unknown branch
This commit is contained in:
parent
2c86c96dcf
commit
04572d3e2f
2
all
2
all
@ -771,10 +771,8 @@ case "$cmd" in
|
||||
else
|
||||
b=`repobranch "$d"`
|
||||
if git rev-parse "refs/heads/$b" >/dev/null 2>&1; then
|
||||
exists=true
|
||||
verbose git checkout $checkoutflags "$b"
|
||||
elif git rev-parse "refs/remotes/$remote/$b" >/dev/null 2>&1; then
|
||||
exists=true
|
||||
verbose git checkout $checkoutflags --track -b "$b" "$remote/$b"
|
||||
else
|
||||
$ECHO "WTF? Not even branch $b doesn't exist in $d"
|
||||
|
Loading…
Reference in New Issue
Block a user