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

git-fetch fetches blobs that are already in the local repository if no history is shared?

From
ARAdam Roben <adam@roben.org>
Date
Apr 24, 2012, 14:19 UTC
Message-ID
<D7CFF7BD2A9545148AC2553870AA3A15@gmail.com>
Hi all- 
There are two main git mirrors of the WebKit Subversion repository: <git://git.webkit.org/WebKit.git> and <https://github.com/WebKit/webkit>. These repositories have the exact same trees/blobs, but have entirely different commits due to the GitHub mirror using a custom --authors-prog with git-svn.
Tor Arne (CCed) noticed something interesting today:
If you clone one of these repositories, then add the other as a remote and fetch it, all the trees/blobs seem to get pulled down again, even though they're already in the local repository. It seems like only the commit objects should be fetched, since they're the only difference between the two remotes.
Is this a bug in git? 
-Adam
Next: Shawn Pearce
Message 1 of 3 in “git-fetch fetches blobs that are already in the local repository if no history is shared?”
  1. Adam RobenApr 24, 2012
  2. Shawn PearceApr 24, 2012
  3. Sitaram ChamartyApr 25, 2012

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.