Skip to content

Commit ffa1f28

Browse files
glandiumgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5fa0f52 commit ffa1f28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

revision.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3088,7 +3088,7 @@ static void set_children(struct rev_info *revs)
30883088

30893089
void reset_revision_walk(void)
30903090
{
3091-
clear_object_flags(SEEN | ADDED | SHOWN);
3091+
clear_object_flags(SEEN | ADDED | SHOWN | TOPO_WALK_EXPLORED | TOPO_WALK_INDEGREE);
30923092
}
30933093

30943094
static int mark_uninteresting(const struct object_id *oid,

0 commit comments

Comments
 (0)