From c0ce981f5ebfd02463ff697b2fca52c7a54b0625 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Mon, 26 Mar 2007 06:14:40 +0200 Subject: [PATCH] Bisect: Use "git-show-ref --verify" when reseting. Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano --- git-bisect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-bisect.sh b/git-bisect.sh index 936b4a4b8..fda1712a0 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -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 } -- 2.26.2