From: Rudolf Polzer Date: Sun, 5 Jun 2011 18:24:28 +0000 (+0200) Subject: fix lack of error when switching to an unknown branch X-Git-Tag: xonotic-v0.5.0~73 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=04572d3e2fb1ffeec7fc722be0ef7476c7682bac;p=xonotic%2Fxonotic.git fix lack of error when switching to an unknown branch --- diff --git a/all b/all index b229ae3d..629f5f89 100755 --- a/all +++ b/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"