]> git.ipfire.org Git - thirdparty/git.git/blobdiff - graph.c
graph API: fix a bug in the rendering of octopus merges
[thirdparty/git.git] / graph.c
diff --git a/graph.c b/graph.c
index 31e09eb2c7953fdb1b8ff47db2145f72a248dcbe..b7879f8c66ee838f9603330b7083f65ff215012b 100644 (file)
--- a/graph.c
+++ b/graph.c
@@ -852,7 +852,7 @@ static void graph_output_commit_line(struct git_graph *graph, struct strbuf *sb)
                        graph_output_commit_char(graph, sb);
                        chars_written++;
 
-                       if (graph->num_parents > 3)
+                       if (graph->num_parents > 2)
                                chars_written += graph_draw_octopus_merge(graph,
                                                                          sb);
                } else if (seen_this && (graph->num_parents > 2)) {