Re: [bitbake-devel] [PATCH 1/1] bitbake: add BB_GIT_SHALLOW_SKIP_FAST to disable fast shallow mode
Richard Purdie <[email protected]>
| Newsgroups | org.openembedded.lists.bitbake-devel |
|---|---|
| Message-ID | <18eeec4ded4bafd81bfcbc884d82d87e076679c5.camel@linuxfoundation.org> |
On Mon, 2026-05-11 at 09:14 -0700, Marcio Henriques via lists.openembedded.org wrote: > On Tue, May 5, 2026 at 10:41 AM, Richard Purdie wrote: > > > > FWIW the git fetcher is specifically coded to avoid removing > > references. It shouldn't remove old revisions or obsolete heads (e.g. > > for repos that changed master -> main). If it is doing that, that is > > something we should fix. > This is also about dealing with force pushes that may remove something that > was previously merged and is no longer available in DL_DIR/git2 or upstream. The fetcher should not be removing those things. If it is, we should fix that. > > I can see why you might decide to do that but it will be a pretty > > inefficient use of space with an archive for every revision and means > > turning everything into shallow clones, which has its own challenges. > > It can actually also be more efficient as the git fetcher fetches all branches and this may > require more space than just archiving the source code for the revisions used in the build. Yes and no, in that you have a copy for each revision. Cheers, Richard