Re: [bitbake-devel] [PATCH] fetch2/git: fix HEAD and branch ref when subpath is used

Mark-PK Tsai (蔡沛剛) <[email protected]>
Newsgroups org.openembedded.lists.bitbake-devel
Message-ID <[email protected]>
On Wed, 2026-04-15 at 08:58 +0200, Antonin Godard wrote:
> Hi,
> 
> On Wed Apr 15, 2026 at 4:58 AM CEST, Mark-PK Tsai via
> lists.openembedded.org wrote:
> > From: Mark-Pk Tsai <[email protected]>
> > 
> > When subpath is set the checkout code uses read-tree + checkout-
> > index,
> > but never updates HEAD. It stays on whatever branch the clone
> > defaulted
> > to instead of pointing to the requested revision.
> > 
> > Fix by pointing HEAD at the correct revision after checkout-index,
> > and
> > creating the branch ref when branch= is specified.
> 
> Can you remove this warning note with your patch?
> 
> https://urldefense.com/v3/__https://git.openembedded.org/bitbake/tree/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst*n428__;Iw!!CTRNKA9wMg0ARbw!glJbRSkEd8P_hdbEWwJEMDsYXGJhez1iBKQZhnqx8swFNF98NnhluX8KkTZVt3uVyZJcJDtnDPjqLqL03s0hxLGICalfTwQ$
>  
> 
Thank you for pointing that out. I have removed the warning note in v2.
Could you please take a look?


> Thanks,
> Antonin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.