From 42835aa6b83c0c2f694cbe078b24243fe27486f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Wed, 8 Oct 2014 10:24:06 +0200 Subject: [PATCH] revwalk: clear the flags on reset These store merge-base information which is only valid for a single run. --- src/revwalk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/revwalk.c b/src/revwalk.c index bd07d02cb..84034f580 100644 --- a/src/revwalk.c +++ b/src/revwalk.c @@ -540,6 +540,7 @@ void git_revwalk_reset(git_revwalk *walk) commit->in_degree = 0; commit->topo_delay = 0; commit->uninteresting = 0; + commit->flags = 0; }); git_pqueue_clear(&walk->iterator_time);