Skip to content

Commit 5d56755

Browse files
committed
Merge branch 'ds/ahead-behind-fix' into maint-2.45
Fix for a progress bar. * ds/ahead-behind-fix: commit-graph: increment progress indicator
2 parents 112bd6a + f116039 commit 5d56755

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commit-graph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ static void compute_reachable_generation_numbers(
15971597
timestamp_t gen;
15981598
repo_parse_commit(info->r, c);
15991599
gen = info->get_generation(c, info->data);
1600-
display_progress(info->progress, info->progress_cnt + 1);
1600+
display_progress(info->progress, ++info->progress_cnt);
16011601

16021602
if (gen != GENERATION_NUMBER_ZERO && gen != GENERATION_NUMBER_INFINITY)
16031603
continue;

t/t6500-gc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ test_expect_success TTY 'with TTY: gc --no-quiet' '
158158
git -c gc.writeCommitGraph=true gc --no-quiet >stdout 2>stderr &&
159159
test_must_be_empty stdout &&
160160
test_grep "Enumerating objects" stderr &&
161-
test_grep "Computing commit graph generation numbers" stderr
161+
test_grep "Computing commit graph generation numbers: 100% (4/4), done." stderr
162162
'
163163

164164
test_expect_success 'gc --quiet' '

0 commit comments

Comments
 (0)