From 04572d3e2fb1ffeec7fc722be0ef7476c7682bac Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 5 Jun 2011 20:24:28 +0200 Subject: [PATCH] fix lack of error when switching to an unknown branch --- all | 2 -- 1 file changed, 2 deletions(-) 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" -- 2.39.2