Browse Source

Bisect: Use "git-show-ref --verify" when reseting.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Christian Couder 18 years ago committed by Junio C Hamano
parent
commit
c0ce981f5e
  1. 2
      git-bisect.sh

2
git-bisect.sh

@ -173,7 +173,7 @@ bisect_reset() { @@ -173,7 +173,7 @@ bisect_reset() {
else
branch=master
fi ;;
1) test -f "$GIT_DIR/refs/heads/$1" || {
1) git-show-ref --verify --quiet -- "refs/heads/$1" || {
echo >&2 "$1 does not seem to be a valid branch"
exit 1
}

Loading…
Cancel
Save