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>
This commit is contained in:
Christian Couder 2007-03-26 06:14:40 +02:00 committed by Junio C Hamano
parent 52c813f22f
commit c0ce981f5e

View File

@ -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
}