aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2007-03-26 06:14:40 +0200
committerJunio C Hamano <junkio@cox.net>2007-03-25 23:14:06 -0700
commitc0ce981f5ebfd02463ff697b2fca52c7a54b0625 (patch)
treeb95c29149850610e6b0ecf279129d1c35312a885
parent52c813f22fef784c0c66fb3cb18217489cbacf3a (diff)
downloadgit-c0ce981f5ebfd02463ff697b2fca52c7a54b0625.tar.gz
git-c0ce981f5ebfd02463ff697b2fca52c7a54b0625.tar.xz
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>
-rwxr-xr-xgit-bisect.sh2
1 files changed, 1 insertions, 1 deletions
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
}