git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git clone takes ages on a slow link

From
ABAnton Blanchard <anton@samba.org>
Date
Jun 4, 2006, 22:29 UTC
Message-ID
<20060604222901.GD986@krispykreme>
In-Reply-To
<Pine.LNX.4.64.0606041046340.5498@g5.osdl.org>
Hi Linus,
Show 6 quoted lines
> 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
Show 12 quoted lines
> 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;
>  				}
>  			}
>  		}
Previous: Linus Torvalds
Message 3 of 3 in “git clone takes ages on a slow link”
  1. Anton BlanchardJun 4, 2006
  2. Linus TorvaldsJun 4, 2006
  3. Anton BlanchardJun 4, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.