summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorLibravatar Mike Hommey <mh@glandium.org>2019-11-22 17:37:03 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-11-25 11:48:47 +0900
commitffa1f28fea000312ac917874db40f7b298458ef5 (patch)
treed6c31afd454d1c159471fa93c4116fa1c15a9e2d /revision.c
parentGit 2.23 (diff)
downloadtgif-ffa1f28fea000312ac917874db40f7b298458ef5.tar.xz
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>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c
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,