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>
This commit is contained in:
Mike Hommey 2019-11-22 17:37:03 +09:00 committed by Junio C Hamano
parent 5fa0f5238b
commit ffa1f28fea

View file

@ -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,