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

Re: GIT BUG? GIT occasionally redownloads its entire data set

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 24, 2009, 02:17 UTC
Message-ID
<7vskl34qc9.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<28707.1237855543@redhat.com>
David Howells <dhowells@redhat.com> writes:
> to v2.6.29.  I've attached the command output for reference.
Version of git used, and the .git/config ([remote "origin"] section)?
Show 13 quoted lines
> warthog>git-pull
> remote: Counting objects: 447, done.
> remote: Compressing objects: 100% (57/57), done.
> remote: Total 266 (delta 216), reused 254 (delta 207)
> Receiving objects: 100% (266/266), 37.94 KiB, done.
> Resolving deltas: 100% (216/216), completed with 105 local objects.
> warning: no common commits
> remote: Counting objects: 1075436, done.
> remote: Compressing objects: 100% (176743/176743), done.
> remote: Total 1075436 (delta 896164), reused 1072243 (delta 893708)
> Receiving objects: 100% (1075436/1075436), 260.71 MiB | 307 KiB/s, done.
> Resolving deltas: 100% (896164/896164), done.
>>From git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6

This is intereseting because it shows that two separate transfer happened back to back, which I do not think is what recent git does.

We used to first grab the objects reachable from primary refs (presumably [remote "origin"] fetch = refs/heads/*:refs/remotes/origin/*) and then turned around to ask for tags that possibly point at commits we freshly obtained during the first transfer (i.e. the ones reachable from the tip of "master"). In such an ancient version I vaguely recall some bugs fixed before we stopped doing this two-stage transfer altogether, but I do not recall offhand if a bug that loses track of what it just downloaded (which is what your description suggests) was among them.

Rings a bell, anybody?
Previous: David HowellsNext: Dmitry Potapov
Message 2 of 5 in “GIT BUG? GIT occasionally redownloads its entire data set”
  1. David HowellsMar 24, 2009
  2. Junio C HamanoMar 24, 2009
  3. Dmitry PotapovMar 24, 2009
  4. Junio C HamanoMar 24, 2009
  5. David HowellsMar 24, 2009

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.