summaryrefslogtreecommitdiff
path: root/commit-graph.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-08-08 14:26:09 -0700
committerJunio C Hamano <gitster@pobox.com>2019-08-08 14:26:09 -0700
commit3bcedae27ea2af2e3895d92d6525231e350c91be (patch)
tree9bf2247236869d3f41bbd0b9a2df746fcc2ecf66 /commit-graph.c
parent7c20df84bd21ec0215358381844274fa10515017 (diff)
parenta35bea40b674b21fbdb98d982e41c46d014ced83 (diff)
Merge branch 'ds/commit-graph-octopus-fix'
commit-graph did not handle commits with more than two parents correctly, which has been corrected. * ds/commit-graph-octopus-fix: commit-graph: fix bug around octopus merges
Diffstat (limited to 'commit-graph.c')
-rw-r--r--commit-graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit-graph.c b/commit-graph.c
index b3c4de79b6..90fdee9256 100644
--- a/commit-graph.c
+++ b/commit-graph.c
@@ -1636,7 +1636,7 @@ static void sort_and_scan_merged_commits(struct write_commit_graph_context *ctx)
num_parents++;
if (num_parents > 2)
- ctx->num_extra_edges += num_parents - 2;
+ ctx->num_extra_edges += num_parents - 1;
}
}