]> git.ipfire.org Git - thirdparty/git.git/commitdiff
revision: clear the topo-walk flags in reset_revision_walk
authorMike Hommey <mh@glandium.org>
Fri, 22 Nov 2019 08:37:03 +0000 (17:37 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Nov 2019 02:48:47 +0000 (11:48 +0900)
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>
revision.c

index 07412297f0248aae886eeb77c3a1cab13c93039c..4827360ed80ac4fddff1f00c1068eba05791f9d7 100644 (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,