Browse Source

rebase: use git rev-parse -q

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Miklos Vajna 16 years ago committed by Junio C Hamano
parent
commit
5a92d19021
  1. 4
      git-rebase.sh

4
git-rebase.sh

@ -365,10 +365,10 @@ case "$#" in @@ -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

Loading…
Cancel
Save