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

Re: git clone takes ages on a slow link

From
Linus Torvalds <torvalds@osdl.org>
Date
Jun 4, 2006, 17:48 UTC
Message-ID
<Pine.LNX.4.64.0606041046340.5498@g5.osdl.org>
In-Reply-To
<20060604010145.GC986@krispykreme>
On Sun, 4 Jun 2006, Anton Blanchard wrote:
> 
> I think the ticker is over anxious.

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?
		Linus
---
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: Anton BlanchardNext: Anton Blanchard
Message 2 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.