Skip to content

Commit

Permalink
bisect: call 'clear_commit_marks_all()' in 'bisect_next_all()'
Browse files Browse the repository at this point in the history
As there can be other revision walks after bisect_next_all(),
let's add a call to a function to clear all the marks at the
end of bisect_next_all().

Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Miriam Rubio <mirucam@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
mirucam authored and gitster committed Sep 24, 2020
1 parent 09535f0 commit c7a7f48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bisect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,8 @@ enum bisect_error bisect_next_all(struct repository *r, const char *prefix)
"Bisecting: %d revisions left to test after this %s\n",
nr), nr, steps_msg);
free(steps_msg);
/* Clean up objects used, as they will be reused. */
clear_commit_marks_all(ALL_REV_FLAGS);

return bisect_checkout(bisect_rev, no_checkout);
}
Expand Down

0 comments on commit c7a7f48

Please sign in to comment.