From: Anton Blanchard Date: Sun, 04 Jun 2006 22:29:02 GMT Subject: Re: git clone takes ages on a slow link Message-ID: <20060604222901.GD986@krispykreme> In-Reply-To: Hi Linus, > It is indeed. It's _meant_ to only tick once a second or when the > percentage changes, but I think 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. > > So something like this should help... Can you verify? Thanks, it fixes it. Anton > diff --git a/builtin-read-tree.c b/builtin-read-tree.c > index 716f792..80c9320 100644 > --- a/builtin-read-tree.c > +++ b/builtin-read-tree.c > @@ -336,6 +336,7 @@ static void check_updates(struct cache_e > fprintf(stderr, "%4u%% (%u/%u) done\r", > percent, cnt, total); > last_percent = percent; > + progress_update = 0; > } > } > }