Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit-graph: increment progress indicator
This fixes a bug that was introduced by 368d19b (commit-graph: refactor compute_topological_levels(), 2023-03-20): Previously, the progress indicator was updated from `i + 1` where `i` is the loop variable of the enclosing `for` loop. After this patch, the update used `info->progress_cnt + 1` instead, however, unlike `i`, the `progress_cnt` attribute was not incremented. Let's increment it. To prevent this from regressing again, extend the existing test case t6500.11 'with TTY: gc --no-quiet' to verify that the progress meter reaches 100% (without this fix, it would have reached only 25%). Helped-by: Patrick Steinhardt <[email protected]> Signed-off-by: Derrick Stolee <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
- Loading branch information