]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
fix lack of error when switching to an unknown branch
authorRudolf Polzer <divverent@xonotic.org>
Sun, 5 Jun 2011 18:24:28 +0000 (20:24 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 5 Jun 2011 18:24:28 +0000 (20:24 +0200)
all

diff --git a/all b/all
index b229ae3d98cb99a95e570a6912cbf6f9bba31d21..629f5f89d6f225b1254c775ad08b4600497d603b 100755 (executable)
--- 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"