From: Christian Couder Date: Mon, 26 Mar 2007 04:14:40 +0000 (+0200) Subject: Bisect: Use "git-show-ref --verify" when reseting. X-Git-Tag: v1.5.1-rc3~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c0ce981f5ebfd02463ff697b2fca52c7a54b0625;p=git.git Bisect: Use "git-show-ref --verify" when reseting. Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano --- 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 }