From: "Bruno Ferreira" <srbruno@gmail.com>
To: bitbake-devel@lists.openembedded.org
Subject: Re: [bitbake][lib/bb/fetch2/git.py] Re-introducing --prune option in fetch_cmd #bitbake
Date: Thu, 19 Feb 2026 02:35:29 -0800 [thread overview]
Message-ID: <991492.1771497329296933851@lists.openembedded.org> (raw)
In-Reply-To: <CANNYZj-+b-mRistOxuaHFGgrLHG61ff-ZpARmfYOtr85zbNFqg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1262 bytes --]
>
> I'd say you simply have to ask developers to namespace their branches
> properly and don't step on each other; once there is a branch named
> foo, one cannot anymore create a branch foo/bar, and vice versa.
>
The problem is not asking but more on the enforcing part specially when developers
are able to use this workflow outside bitbake without any issues.
Another upstream branch creation flow that triggers the fetch issue that doesn't
involve to explicitly set the branch in the recipe (as the first example that I provided):
* bitbake <recipe> -c do_fetch --no-setscene with branch "main" and SRCREV = aaa
* Created upstream branch "foo"
* bitbake <recipe> -c do_fetch --no-setscene with branch "main" and SRCREV = bbb (to double confirm that it fetch all the references upstream)
* Deleted upstream branch "foo"
* Created upstream branch "foo/bar"
* bitbake <recipe> -c do_fetch --no-setscene with branch "main" and SRCREV = ccc (to double confirm that it fetch all the references upstream)
* Fetch failed with error: cannot lock ref 'refs/heads/foo/bar': 'refs/heads/foo' exists; cannot create 'refs/heads/foo/bar'
A developer can create a upstream temporary branch and trigger this even if they are not aware of the issue.
[-- Attachment #2: Type: text/html, Size: 1514 bytes --]
next prev parent reply other threads:[~2026-02-19 10:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 16:32 [bitbake][lib/bb/fetch2/git.py] Re-introducing --prune option in fetch_cmd #bitbake Bruno Ferreira
2026-02-09 16:56 ` [bitbake-devel] " Alexander Kanavin
2026-02-10 11:29 ` Bruno Ferreira
2026-02-10 11:57 ` [bitbake-devel] " Alexander Kanavin
2026-02-19 10:35 ` Bruno Ferreira [this message]
2026-02-19 16:37 ` Peter Kjellerstedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=991492.1771497329296933851@lists.openembedded.org \
--to=srbruno@gmail.com \
--cc=bitbake-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox