]> git.ipfire.org Git - thirdparty/git.git/commitdiff
bisect: clear flags in passed repository
authorRené Scharfe <l.s.r@web.de>
Sat, 31 Oct 2020 12:47:58 +0000 (13:47 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 31 Oct 2020 17:46:34 +0000 (10:46 -0700)
69d2cfe6e8 (bisect.c: remove the_repository reference, 2018-11-10) kept
the implicit the_repository reference in clear_commit_marks_all, which
was made explicit by the previous commit (and which also renamed it to
repo_clear_commit_marks).  Replace it as well.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bisect.c

index 3b763dab6be1127320e9ccea10a95f021cda793a..58bc9c73a463d2f005587a5a68ab9b2a32198dcc 100644 (file)
--- a/bisect.c
+++ b/bisect.c
@@ -1090,7 +1090,7 @@ enum bisect_error bisect_next_all(struct repository *r, const char *prefix)
                  nr), nr, steps_msg);
        free(steps_msg);
        /* Clean up objects used, as they will be reused. */
-       repo_clear_commit_marks(the_repository, ALL_REV_FLAGS);
+       repo_clear_commit_marks(r, ALL_REV_FLAGS);
 
        return bisect_checkout(bisect_rev, no_checkout);
 }