Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'js/bisect-no-checkout' into maint
author
Junio C Hamano
<gitster@pobox.com>
Tue, 1 Nov 2011 23:03:35 +0000
(16:03 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 1 Nov 2011 23:03:35 +0000
(16:03 -0700)
* js/bisect-no-checkout:
bisect: fix exiting when checkout failed in bisect_start()
git-bisect.sh
patch
|
blob
|
history
raw
(from parent 1:
a4fdd79
)
diff --git
a/git-bisect.sh
b/git-bisect.sh
index 2524060475ef369c0b9a4641aa88dc2ad6083da4..99efbe884528ffa730d6c0297e20d9de93d5ad9e 100755
(executable)
--- a/
git-bisect.sh
+++ b/
git-bisect.sh
@@
-126,7
+126,8
@@
bisect_start() {
start_head=$(cat "$GIT_DIR/BISECT_START")
if test "z$mode" != "z--no-checkout"
then
- git checkout "$start_head" --
+ git checkout "$start_head" -- ||
+ die "$(eval_gettext "Checking out '\$start_head' failed. Try 'git bisect reset <validbranch>'.")"
fi
else
# Get rev from where we start.