Skip to content

devtool: handle nested git repos with submodules

Clement Faure openembedded-core 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- fix patch 1

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2devtool: avoid recursion into nested git repos with submodulesscripts/lib/devtool/__init__.py+4 -00 replies
2/2oeqa/selftest/devtool: add devtool modify testcase for nested gitsmmeta-selftest/recipes-test/devtool/devtool-test-git-gitsm_git.bb meta/lib/oeqa/selftest/cases/devtool.py+35 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] devtool: handle nested git repos with submodules

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
Signature · 1 line
2.43.0