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

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: got fetch downloads too much
To:
Christian Weisgerber <naddy@mips.inka.de>
Cc:
gameoftrees@openbsd.org
Date:
Wed, 6 Oct 2021 21:42:28 +0200

Download raw body.

Thread
On Wed, Oct 06, 2021 at 09:23:04PM +0200, Christian Weisgerber wrote:
> 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.

Makes sense.

> > 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:

Yes, sorry. My first patch was bad. Please try the second one.