revision: clear the topo-walk flags in reset_revision_walk
Not doing so can lead to wrong topo-walks when using the revision walk API consecutively. Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Mike Hommey committed
Nov 22, 2019 at 17:37 UTC
ffa1f28fea000312ac917874db40f7b298458ef5
1 file changed
+1
-1
revision.c
+1
-1
index 07412297f0..4827360ed8 100644
--- a/revision.c
+++ b/revision.c
@@ -3088,7 +3088,7 @@ static void set_children(struct rev_info *revs)
void reset_revision_walk(void)
{
- clear_object_flags(SEEN | ADDED | SHOWN);
+ clear_object_flags(SEEN | ADDED | SHOWN | TOPO_WALK_EXPLORED | TOPO_WALK_INDEGREE);
}
static int mark_uninteresting(const struct object_id *oid,