Skip to content

Commit c7a7f48

Browse files
mirucamgitster
authored andcommitted
bisect: call 'clear_commit_marks_all()' in 'bisect_next_all()'
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 <[email protected]> Signed-off-by: Miriam Rubio <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 09535f0 commit c7a7f48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bisect.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,8 @@ enum bisect_error bisect_next_all(struct repository *r, const char *prefix)
10821082
"Bisecting: %d revisions left to test after this %s\n",
10831083
nr), nr, steps_msg);
10841084
free(steps_msg);
1085+
/* Clean up objects used, as they will be reused. */
1086+
clear_commit_marks_all(ALL_REV_FLAGS);
10851087

10861088
return bisect_checkout(bisect_rev, no_checkout);
10871089
}

0 commit comments

Comments
 (0)