"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Re: got fetch downloads too much
To:
gameoftrees@openbsd.org
Date:
Wed, 6 Oct 2021 21:23:04 +0200

Download raw body.

Thread
Stefan Sperling:

> My guess is that you did not not yet rebase the corresponding branches
> in refs/heads before fetching again?

Right.  I only use "stable/12", so in particular "main" never gets
rebased.

> In that case, the current code keeps fetching the objects again in order
> to get "new" objects for e.g. refs/heads/main. Here is a quick hack to
> prevent this. See the comment added by the patch for details.

Double-plus-ungood.  With that even more is fetched:

Connecting to "origin" anongit@git.freebsd.org
server: Enumerating objects: 192809, done.
server: Counting objects: 100% (69310/69310), done.
server: Compressing objects: 100% (28079/28079), done.
server: Total 192809 (delta 53798), reused 41231 (delta 41231),
pack-reused 123499
   286M fetched; indexing 100%; resolving deltas 100%
Fetched cea409de254b837a6e10cbd03c5ebe7bbc9d448b.pack
Updated refs/remotes/origin/main: da3278ded3b2647d26da26788bab8363e502a144
Updated refs/remotes/origin/stable/12: 6fea4b82e7b86ac680d5615f8361863353737325

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de