]> asedeno.scripts.mit.edu Git - git.git/commitdiff
Bisect: Use "git-show-ref --verify" when reseting.
authorChristian Couder <chriscool@tuxfamily.org>
Mon, 26 Mar 2007 04:14:40 +0000 (06:14 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 26 Mar 2007 06:14:06 +0000 (23:14 -0700)
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-bisect.sh

index 936b4a4b835e51410ccfbb37f4205accbade4422..fda1712a085fa9271ea1a8e0e581c5d4c6801969 100755 (executable)
@@ -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
           }