Skip to contentSkip to conversation

git fetching

DISCUSSION Alejandro Bonilla 5 participants 5 messages Dec 30, 2005

lore
Share & tools
lore
#0 lore raw

Why is it that when I git fetch, this particular part takes a long time?

pack/pack-2dae6bb81ac4383926b1d6a646e3f73b130ba124.pack

Normally, they go pretty fast, but when a new rc or final releases comes up, it takes a lot.

Any idea?

Thanks,

.Alejandro

#1 lore raw
Quoted 6 lines · Alejandro Bonilla

Why is it that when I git fetch, this particular part takes a long time?

pack/pack-2dae6bb81ac4383926b1d6a646e3f73b130ba124.pack

Normally, they go pretty fast, but when a new rc or final releases comes up, it takes a lot.

That file is ~100MB. That'll take a while to download compared to the rest, even on the fastest net connection :)

Dave

#2 lore raw
Quoted 10 lines · Dave Jones
Quoted 6 lines · Alejandro Bonilla

Why is it that when I git fetch, this particular part takes a long time?

pack/pack-2dae6bb81ac4383926b1d6a646e3f73b130ba124.pack

Normally, they go pretty fast, but when a new rc or final releases comes up, it takes a lot.

That file is ~100MB. That'll take a while to download compared to the rest, even on the fastest net connection :)

If you're carrying around a mostly current tree, you should probably not use "rsync" (which is probably why you're seeing that pack line)

Run this:
sed -i.old -e 's/rsync/git/' .git/remotes/origin
and your pulls should go significantly faster.

(The file named "origin" might be in .git/branches/, also.)

You want the file to contain pretty much just this line:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

Also, out of curiosity, do:
du -sh .git/objects/ .git/objects/pack/

You shouldn't see a .git/objects/pack/ much greater than 200 meg, in fact, on freshly cloned tree it would only be about 100 meg:

http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/

Signature · 2 lines
Ryan Anderson
  sometimes Pug Majere
#3 lore raw
Quoted 15 lines · Ryan Anderson
Quoted 11 lines · Dave Jones
Quoted 5 lines · Alejandro Bonilla

Why is it that when I git fetch, this particular part takes a long time?

pack/pack-2dae6bb81ac4383926b1d6a646e3f73b130ba124.pack

Normally, they go pretty fast, but when a new rc or final releases comes up, it takes a lot.

That file is ~100MB. That'll take a while to download compared to the rest, even on the fastest net connection :)

Quoted 8 lines

If you're carrying around a mostly current tree, you should probably not use "rsync" (which is probably why you're seeing that pack line)

Run this:
sed -i.old -e 's/rsync/git/' .git/remotes/origin
and your pulls should go significantly faster.

I don't have the directory .git/remotes/. Here's .git/FETCH_HEAD however.

Quoted 3 lines

(The file named "origin" might be in .git/branches/, also.)

Yes, here's .git/branches/origin.

-- Coywolf

Quoted 13 lines

You want the file to contain pretty much just this line:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

Also, out of curiosity, do:
du -sh .git/objects/ .git/objects/pack/

You shouldn't see a .git/objects/pack/ much greater than 200 meg, in fact, on freshly cloned tree it would only be about 100 meg:

http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/

#4 lore raw
In reply to Ryan Anderson
Quoted 7 lines · Ryan Anderson

Also, out of curiosity, do:
du -sh .git/objects/ .git/objects/pack/

You shouldn't see a .git/objects/pack/ much greater than 200 meg, in fact, on freshly cloned tree it would only be about 100 meg:

http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/

[xav@bip:~/git/linux-2.6]$ du -sh .git/objects/ .git/objects/pack/
1019M   .git/objects/
645M    .git/objects/pack/

It's not freshly cloned, but it's freshly updated and contains nothing but the upstream sources.

Xav