Skip to content

Commit eff97e3

Browse files
Linus TorvaldsJunio C Hamano
authored andcommitted
read-tree: fix eye-candy.
Anton Blanchard spotted that watching checkout stage of a clone on a slow terminal takes ages because it forgot to clear the "once a second happened" flag, so instead of updates the percentage output for every file it checks out after the first second has passed. Signed-off-by: Linus Torvalds <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4e2e564 commit eff97e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin-read-tree.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ static void check_updates(struct cache_entry **src, int nr)
376376
fprintf(stderr, "%4u%% (%u/%u) done\r",
377377
percent, cnt, total);
378378
last_percent = percent;
379+
progress_update = 0;
379380
}
380381
}
381382
}

0 commit comments

Comments
 (0)