threads / discuss / 12076

clone --bare 2.6.24.y with --reference linus.git too big?

Subject: clone --bare 2.6.24.y with --reference linus.git too big?

## tl;dr

2 messages between Feb 13, 2008 and Feb 13, 2008.

replies: 1people: 1as markdown or json

Luciano Rocha· Feb 13, 2008, 18:25 UTC · lore
Hello,
I did today a bare clone of the 2.6.24.y tree of the Linux kernel.

I instructed git to use a local mirror of Linus's tree, but the clone ended up downloading over 40MB of data:

$ git clone --bare --reference /.src/kernel/linus.git/ \
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.24.y.git \
    2.6.24.y.git
Initialized empty Git repository in /media/stuff/src/kernel/2.6.24.y.git/
remote: Counting objects: 15483, done.
remote: Compressing objects: 100% (14747/14747), done.
remote: Total 15483 (delta 1795), reused 5236 (delta 632)
Receiving objects: 100% (15483/15483), 46.30 MiB | 317 KiB/s, done.
Resolving deltas: 100% (1795/1795), done.

I expected a much smaller download, as the difference between the heads of both trees are only a few patches (2.6.24 -> 2.6.24.2).

My git is at version 1.5.4.1.99.g3b933.
-- 
Luciano Rocha <luciano@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>
Luciano Rocha· Feb 13, 2008, 18:30 UTC · re: Luciano Rocha · lore

Re: clone --bare 2.6.24.y with --reference linus.git too big?

On Wed, Feb 13, 2008 at 06:25:45PM +0000, Luciano Rocha wrote: <snip>

> I expected a much smaller download, as the difference between the heads
> of both trees are only a few patches (2.6.24 -> 2.6.24.2).
Correction: as there are only a few patches on 2.6.24.y tree that aren't
in Linus's. Linus's tree head is now, of course, very much ahead of
2.6.24.y.
-- 
Luciano Rocha <luciano@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>

← back to recent threads