diff --git a/git-bisect.sh b/git-bisect.sh index c99ffee122f9d4bd714fb3e6278cafd3e219891b..dd91bd5bc7b71290adea7662a937e31858f4fcd3 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -62,7 +62,7 @@ bisect_start() { # Verify HEAD. If we were bisecting before this, reset to the # top-of-line master first! # - head=$(GIT_DIR="$GIT_DIR" git symbolic-ref HEAD) || + head=$(GIT_DIR="$GIT_DIR" git symbolic-ref -q HEAD) || head=$(GIT_DIR="$GIT_DIR" git rev-parse --verify HEAD) || die "Bad HEAD - I need a HEAD" case "$head" in