public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] devtool: handle nested git repos with submodules
@ 2026-02-12 10:38 Clement Faure
  2026-02-12 10:38 ` [PATCH v2 1/2] devtool: avoid recursion into " Clement Faure
  2026-02-12 10:38 ` [PATCH v2 2/2] oeqa/selftest/devtool: add devtool modify testcase for nested gitsm Clement Faure
  0 siblings, 2 replies; 3+ messages in thread
From: Clement Faure @ 2026-02-12 10:38 UTC (permalink / raw)
  To: openembedded-core; +Cc: saul.wold, ross.burton, Clement Faure

This patch set fixes devtool modify command when a recipe fetches a
git repository with submodules to BB_GIT_DEFAULT_DESTSUFFIX.
Devtool would parse BB_GIT_DEFAULT_DESTSUFFIX recursively and
attempt a duplicate git submodule add command resulting in a
devtool modify command failure.
The patch fixes that and stops descending once .gitmodules is
detected.
A selftest test case has been added to cover this scenario.

Tests ran:
- devtool.*

changes in v2:
- fix patch 1

Clement Faure (2):
  devtool: avoid recursion into nested git repos with submodules
  oeqa/selftest/devtool: add devtool modify testcase for nested gitsm

 .../devtool/devtool-test-git-gitsm_git.bb     | 10 ++++++++
 meta/lib/oeqa/selftest/cases/devtool.py       | 25 +++++++++++++++++++
 scripts/lib/devtool/__init__.py               |  4 +++
 3 files changed, 39 insertions(+)
 create mode 100644 meta-selftest/recipes-test/devtool/devtool-test-git-gitsm_git.bb

-- 
2.43.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-12 10:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-12 10:38 [PATCH v2 0/2] devtool: handle nested git repos with submodules Clement Faure
2026-02-12 10:38 ` [PATCH v2 1/2] devtool: avoid recursion into " Clement Faure
2026-02-12 10:38 ` [PATCH v2 2/2] oeqa/selftest/devtool: add devtool modify testcase for nested gitsm Clement Faure

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox