From: Miklos Vajna Date: Wed, 3 Dec 2008 13:26:51 +0000 (+0100) Subject: rebase: use git rev-parse -q X-Git-Tag: v1.6.1-rc2~14 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5a92d190211c5f1277ea76752882a5f1104488f8;p=git.git rebase: use git rev-parse -q Signed-off-by: Miklos Vajna Signed-off-by: Junio C Hamano --- 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