"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 19:19:15 +0200

Download raw body.

Thread
Stefan Sperling:

> Is it reproducible? You could try "rewinding" those refs to the
> commits which you started fetching with, e.g. with 'got ref'.

$ got ref -c 7f4bb501768b9b3f856f91fbc8b9c80a2a4aaa04 refs/remotes/origin/main
$ got ref -c f7e56b48260646f8b1d5d619a92ca1b2c2d26efc refs/remotes/origin/stable/12

> And then fetch again. Does it still fetch more than it should?

It does:

Connecting to "origin" anongit@git.freebsd.org
server: Enumerating objects: 82599, done.
server: Counting objects: 100% (19209/19209), done.
server: Compressing objects: 100% (12254/12254), done.
server: Total 82599 (delta 13980), reused 6955 (delta 6955), pack-reused 63390
    75M fetched; indexing 100%; resolving deltas 100%
Fetched 8bbc0e2ea7ac9610a329d754bff75fc96724f1cb.pack
Updated refs/remotes/origin/main: da3278ded3b2647d26da26788bab8363e502a144
Updated refs/remotes/origin/stable/12: 6fea4b82e7b86ac680d5615f8361863353737325
Updated refs/remotes/origin/stable/13: b1cca74367374bbb9cdc881c671a9f9525dca313

got.conf:

remote "origin" {
	server anongit@git.freebsd.org
	protocol ssh
	repository "/src.git"
	fetch-all-branches yes
}

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