@matheusbsbs / matheus-bagliano / commits / c0ce981f5e
Fork 0

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>

Christian Couder committed Mar 26, 2007 at 06:14 UTC c0ce981f5ebfd02463ff697b2fca52c7a54b0625
1 file changed +1 -1
git-bisect.sh
+1 -1
@@ -173,7 +173,7 @@ bisect_reset() {
173 else
174 branch=master
175 fi ;;
176 - 1) test -f "$GIT_DIR/refs/heads/$1" || {
176 + 1) git-show-ref --verify --quiet -- "refs/heads/$1" || {
177 echo >&2 "$1 does not seem to be a valid branch"
178 exit 1
179 }