From: Linus Torvalds <torvalds@osdl.org>
To: sean <seanlkml@sympatico.ca>
Cc: Radoslaw Szkodzinski <astralstorm@gorzow.mm.pl>, git@vger.kernel.org
Subject: Re: How to not download objects more than needed?
Date: Tue, 21 Feb 2006 16:42:34 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.64.0602211635450.30245@g5.osdl.org> (raw)
In-Reply-To: <BAYC1-PASMTP03A58A4F389365AC85DA68AEFC0@CEZ.ICE>
On Tue, 21 Feb 2006, sean wrote:
>
> > I have linux-2.6 repository pulled and I'd like to download some branch
> > (say, netdev-2.6), which uses many of the same objects,
> > but not to get all the objects from the git server.
>
> Just make sure you're not using the rsync protocol. Using the
> native git protocol would be best.
Side note: the "automatic tag following" is broken wrt pulling unnecessary
objects, even with the git protocol.
What happens is that if you don't explicitly have a branch for what you
are pulling, and you do something like
git pull git://git.kernel.org/....
and the automatic tag following kicks in, it will first have fetched the
objects once, and then when it tries to fetch the tag objects, it will
fetch the objects it already fetched _again_ (plus the tags), because it
will do the same object pull, but the temporary branch (to be merged) will
never have been written as a branch head.
So you'll see something like
Generating pack...
Done counting <x> objects.
Packing <x> objects.......................
Unpacking <x> objects
100% (<x>/<x>) done
Auto-following refs/tags/v1.2.2
Generating pack...
Done counting <x+1> objects.
Packing <x+1> objects.......................
Unpacking <x+1> objects
100% (<x+1>/<x+1>) done
* refs/tags/v1.2.2: storing tag 'v1.2.2' of master.kernel.org:/pub/scm/git/git
just because we hadn't updated any refs before we started re-fetching more
objects.
So we do have cases where we fetch unnecessarily even with the native
protocol.
Linus
next prev parent reply other threads:[~2006-02-22 0:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-21 19:38 How to not download objects more than needed? Radoslaw Szkodzinski
[not found] ` <20060221161340.73a19228.seanlkml@sympatico.ca>
2006-02-21 21:13 ` sean
2006-02-22 0:42 ` Linus Torvalds [this message]
2006-02-22 1:13 ` Jan Harkes
2006-02-22 1:55 ` Junio C Hamano
2006-02-22 3:11 ` Jan Harkes
2006-02-22 3:22 ` Junio C Hamano
2006-02-22 21:12 ` [PATCH] git-fetch: follow tag only when tracking remote branch Junio C Hamano
2006-02-22 21:19 ` Andreas Ericsson
2006-02-21 21:32 ` How to not download objects more than needed? Junio C Hamano
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=Pine.LNX.4.64.0602211635450.30245@g5.osdl.org \
--to=torvalds@osdl.org \
--cc=astralstorm@gorzow.mm.pl \
--cc=git@vger.kernel.org \
--cc=seanlkml@sympatico.ca \
/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;
as well as URLs for NNTP newsgroup(s).