mbox series

[0/1] fetch2: Ensure a valid symlink in `PREMIRRORS` case when using shallow cloning

Message ID 20250521091153.2445853-1-stefan-koch@siemens.com
Headers show
Series fetch2: Ensure a valid symlink in `PREMIRRORS` case when using shallow cloning | expand

Message

Koch, Stefan May 21, 2025, 9:11 a.m. UTC
Hi all,

I previously submitted a patch series that improves BitBake's git fetch mechanisms:
fetch2/git: Improve shallow, lfs, and tag support
When `ud.shallow == 1`:
- Prefer an initial shallow clone over an initial full bare clone,
  while still utilizing any already existing full bare clones.

However, there is an issue when using PREMIRRORS and shallow cloning toghether:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15856

This patch ensures a valid symlink in the `PREMIRRORS` case when using shallow cloning.
Since `ud.path` contains in that case the `PREMIRRORS` prefix path, this change ensures that a correct symlink is set up.

This patch is a _working_ *proof-of-concept* and should serve as a discussion base on the mailing list.

Patches:
1) fetch2: Ensure a valid symlink in `PREMIRRORS` case when using shallow cloning

Best regards

Stefan

Stefan Koch (1):
  fetch2: Ensure a valid symlink in `PREMIRRORS` case when using shallow
    cloning

 lib/bb/fetch2/__init__.py | 5 +++++
 1 file changed, 5 insertions(+)