Re: Slow fetches of tags
From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:42:27
On Wed, 24 May 2006, Ralf Baechle wrote:
I have a fairly large git tree (with a 320MB pack file containing some
700,000 objects). A small fetch like
git fetch git://www.kernel.org/pub/scm/linux/kernel/git/stable/\
linux-2.6.16.y.git master:v2.6.16-stable
which only fetches a handful of objects (v2.6.16.17 -> v2.6.16.18) will
take on the order of 4-5 minutes. Adding the "-n" option is will bring
the operation down to under a second, so it really is just the tags
that are slowing things down so much..So this is a tree where you already _have_ most of the tags, no? Can you add a printout to show what the "taglist" is for you in git-fetch.sh (just before the thing that does that fetch_main "$taglist" thing?). It _should_ have pruned out all the tags you already have. Or is it just the "git-ls-remote" that takes forever? (Or, if you run "top", is there something that is an obviously heavy operation on the client side?) Linus