stat_tracking_info(): clear object flags used during counting
[gitweb.git] / remote.c
index bd5c3be3ecda20cf9724152bd54a66fd904326e7..df8bd72ba9b9728aeff0c34208a6492b7d0b692c 100644 (file)
--- a/remote.c
+++ b/remote.c
@@ -1295,6 +1295,10 @@ int stat_tracking_info(struct branch *branch, int *num_ours, int *num_theirs)
                else
                        (*num_theirs)++;
        }
+
+       /* clear object flags smudged by the above traversal */
+       clear_commit_marks(ours, ALL_REV_FLAGS);
+       clear_commit_marks(theirs, ALL_REV_FLAGS);
        return 1;
 }