revwalk: clear the flags on reset These store merge-base information which is only valid for a single run.
diff --git a/src/revwalk.c b/src/revwalk.c
index bd07d02..84034f5 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -540,6 +540,7 @@ void git_revwalk_reset(git_revwalk *walk)
commit->in_degree = 0;
commit->topo_delay = 0;
commit->uninteresting = 0;
+ commit->flags = 0;
});
git_pqueue_clear(&walk->iterator_time);