]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
don't show a stupid error message
authorRudolf Polzer <divVerent@xonotic.org>
Wed, 13 Oct 2010 09:46:58 +0000 (11:46 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 13 Oct 2010 09:46:58 +0000 (11:46 +0200)
all

diff --git a/all b/all
index 5eb4af738d666bfc7981060b930071e9015736bd..c66ff713c5b1143cdb49b17ee6f1eba97bd56215 100755 (executable)
--- a/all
+++ b/all
@@ -1075,8 +1075,8 @@ case "$cmd" in
                                                verbose git branch -D "${B#refs/heads/}"
                                        fi
                                done
                                                verbose git branch -D "${B#refs/heads/}"
                                        fi
                                done
-                               verbose git branch -t master origin/master || true
-                               verbose git branch -t "`repobranch "$d"`" origin/"`repobranch "$d"`" || true
+                               git rev-parse refs/heads/master 2>/dev/null || verbose git branch -t master origin/master || true
+                               git rev-parse "refs/heads/`repobranch "$d"`" 2>/dev/null || verbose git branch -t "`repobranch "$d"`" origin/"`repobranch "$d"`" || true
                        fi
                done
                ;;
                        fi
                done
                ;;