From: Adam Roben <adam@roben.org>
To: git@vger.kernel.org
Cc: "Tor Arne Vestbø" <tor.arne.vestbo@nokia.com>
Subject: git-fetch fetches blobs that are already in the local repository if no history is shared?
Date: Tue, 24 Apr 2012 10:19:06 -0400 [thread overview]
Message-ID: <D7CFF7BD2A9545148AC2553870AA3A15@gmail.com> (raw)
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 reply other threads:[~2012-04-24 14:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-24 14:19 Adam Roben [this message]
2012-04-24 14:23 ` git-fetch fetches blobs that are already in the local repository if no history is shared? Shawn Pearce
2012-04-25 1:26 ` Sitaram Chamarty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D7CFF7BD2A9545148AC2553870AA3A15@gmail.com \
--to=adam@roben.org \
--cc=git@vger.kernel.org \
--cc=tor.arne.vestbo@nokia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox