From 5a92d190211c5f1277ea76752882a5f1104488f8 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 3 Dec 2008 14:26:51 +0100 Subject: [PATCH] rebase: use git rev-parse -q Signed-off-by: Miklos Vajna Signed-off-by: Junio C Hamano --- git-rebase.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-rebase.sh b/git-rebase.sh index 023a6dc94..ea7720d3e 100755 --- a/git-rebase.sh +++ b/git-rebase.sh @@ -365,10 +365,10 @@ case "$#" in switch_to="$2" if git show-ref --verify --quiet -- "refs/heads/$2" && - branch=$(git rev-parse --verify "refs/heads/$2" 2>/dev/null) + branch=$(git rev-parse -q --verify "refs/heads/$2") then head_name="refs/heads/$2" - elif branch=$(git rev-parse --verify "$2" 2>/dev/null) + elif branch=$(git rev-parse -q --verify "$2") then head_name="detached HEAD" else -- 2.30.2