Commit Diff


commit - d231233082281366b326748a6438d4df1d465126
commit + 72f85f8c3ae4b36f7f5c13835be4cfcca33ce82d
blob - 90a73058e6a8463b4fca5849b78e27ee04b10678
blob + eb9d8bd3823486c3d3913e5b12a23435f511f328
--- lib/commit_graph.c
+++ lib/commit_graph.c
@@ -183,6 +183,7 @@ add_node_to_iter_list(struct got_commit_graph *graph,
 	do {
 		if (node->commit_timestamp == n->commit_timestamp) {
 			TAILQ_INSERT_AFTER(&graph->iter_list, n, node, entry);
+			break;
 		} else if (node->commit_timestamp < n->commit_timestamp) {
 			next = TAILQ_NEXT(n, entry);
 			if (next == NULL) {