From 93444cba48738af26a9e1d5167daaa9ee771b741 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 13 Oct 2010 11:46:58 +0200 Subject: [PATCH] don't show a stupid error message --- all | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/all b/all index 5eb4af73..c66ff713 100755 --- a/all +++ b/all @@ -1075,8 +1075,8 @@ case "$cmd" in 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 ;; -- 2.39.2