Skip to content

Commit

Permalink
Merge branch 'js/bisect-no-checkout' into maint
Browse files Browse the repository at this point in the history
* js/bisect-no-checkout:
  bisect: fix exiting when checkout failed in bisect_start()
  • Loading branch information
gitster committed Nov 1, 2011
2 parents a4fdd79 + 1acf117 commit dddc411
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-bisect.sh
Expand Up @@ -126,7 +126,8 @@ bisect_start() {
start_head=$(cat "$GIT_DIR/BISECT_START") start_head=$(cat "$GIT_DIR/BISECT_START")
if test "z$mode" != "z--no-checkout" if test "z$mode" != "z--no-checkout"
then then
git checkout "$start_head" -- git checkout "$start_head" -- ||
die "$(eval_gettext "Checking out '\$start_head' failed. Try 'git bisect reset <validbranch>'.")"
fi fi
else else
# Get rev from where we start. # Get rev from where we start.
Expand Down

0 comments on commit dddc411

Please sign in to comment.