Re: git clone sending unneeded objects (was : git gc expanding packed data?)
- From
Jason Merrill <jason@redhat.com>
- Date
- Sep 25, 2009, 18:05 UTC
- Message-ID
- <4ABD0669.7050309@redhat.com>
- In-Reply-To
- <m2k51dzb39.fsf@linux-m68k.org>
On 08/09/2009 03:43 AM, Andreas Schwab wrote:
Show 11 quoted lines
> Nicolas Pitre<nico@cam.org> writes: > >> If you do a clone using the git:// protocol and the server sends you >> only the ref for the trunk branch, > > A clone will fetch all branches from refs/heads/*. > >> then it should send you only objects reachable from that branch. > > Apparantly this does not work. I'd guess the extra objects are needed > due to the delta compression.
I just tried doing a clone of the GCC repository, then git gc --prune=now, and another clone specifying --reference to the first, and it wanted to download all the unreachable objects again. So it doesn't seem to be a compression issue.
This is with git 1.6.4 on both ends.
Jason