From: Alexander Kanavin <alex.kanavin@gmail.com>
To: bitbake-devel@lists.openembedded.org
Cc: Alexander Kanavin <alex@linutronix.de>
Subject: [PATCH 3/5] bitbake-setup: allow empty commits in configuration history repo
Date: Fri, 9 Jan 2026 14:19:58 +0100 [thread overview]
Message-ID: <20260109132000.2372791-3-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20260109132000.2372791-1-alex.kanavin@gmail.com>
From: Alexander Kanavin <alex@linutronix.de>
This can happen when a user has checked out a different commit
in a component under layers/. 'bitbake-setup update' will reset
to the commit in the configuration, but there will be no changes
to it, and so no difference in the config history repo to be
committed.
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
bin/bitbake-setup | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/bitbake-setup b/bin/bitbake-setup
index 4ccf47e87..93c11bd09 100755
--- a/bin/bitbake-setup
+++ b/bin/bitbake-setup
@@ -81,7 +81,7 @@ def write_sources_fixed_revisions(config_dir, layer_dir, config_data):
def commit_config(config_dir):
bb.process.run("git -C {} add .".format(config_dir))
- bb.process.run("git -C {} commit --no-verify -a -m 'Configuration at {}'".format(config_dir, time.asctime()))
+ bb.process.run("git -C {} commit --allow-empty --no-verify -a -m 'Configuration at {}'".format(config_dir, time.asctime()))
def _write_layer_list(dest, repodirs):
layers = []
--
2.47.3
next prev parent reply other threads:[~2026-01-09 13:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-09 13:19 [PATCH 1/5] doc: document fixed revisions override in bitbake-setup manual Alexander Kanavin
2026-01-09 13:19 ` [PATCH 2/5] bitbake-setup: ensure paths with timestamps in them are unique Alexander Kanavin
2026-01-15 12:03 ` [bitbake-devel] " Quentin Schulz
2026-01-15 12:24 ` Alexander Kanavin
2026-01-09 13:19 ` Alexander Kanavin [this message]
2026-01-09 13:19 ` [PATCH 4/5] bitbake-setup: correct several scenarios in layer updates Alexander Kanavin
2026-01-09 13:20 ` [PATCH 5/5] bitbake-setup: add tests for update scenarios fixed in the previous commit Alexander Kanavin
2026-01-15 11:50 ` [bitbake-devel] [PATCH 1/5] doc: document fixed revisions override in bitbake-setup manual Quentin Schulz
2026-01-15 11:58 ` Alexander Kanavin
2026-01-15 12:59 ` Antonin Godard
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=20260109132000.2372791-3-alex.kanavin@gmail.com \
--to=alex.kanavin@gmail.com \
--cc=alex@linutronix.de \
--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