Message ID | patch-v4-1.2-4cc3923089d-20210909T010722Z-avarab@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 4011224944bf5dc6f38bce55edd5b4092ac0c930 |
Headers | show |
Series | progress.c API users: fix bogus counting | expand |
diff --git a/commit-graph.c b/commit-graph.c index 00614acd65d..46170592204 100644 --- a/commit-graph.c +++ b/commit-graph.c @@ -2125,7 +2125,7 @@ static void sort_and_scan_merged_commits(struct write_commit_graph_context *ctx) ctx->num_extra_edges = 0; for (i = 0; i < ctx->commits.nr; i++) { - display_progress(ctx->progress, i); + display_progress(ctx->progress, i + 1); if (i && oideq(&ctx->commits.list[i - 1]->object.oid, &ctx->commits.list[i]->object.oid)) {