Commit c363871beda50b641e312c43813fd8962e2cd723

Stefan Sperling 2018-06-10T23:47:40

commit graph: don't omit commits with equal timestamps

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/commit_graph.c b/lib/commit_graph.c
index 609fa34..7c351cc 100644
--- a/lib/commit_graph.c
+++ b/lib/commit_graph.c
@@ -212,7 +212,7 @@ add_iteration_candidate(struct got_commit_graph *graph,
 		err = compare_commits(&cmp, node->commit, n->commit);
 		if (err)
 			return err;
-		if (cmp <= 0)
+		if (cmp < 0)
 			continue;
 		TAILQ_INSERT_BEFORE(n, node, entry);
 		break;