From b8112af953e96e6f62f7d2e1cdce8a20f976fda2 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 6 Jun 2024 02:49:38 +0100 Subject: git.sh: use singletree() to decide submodules now it no longer hardcodes a check for whether the project name is coreboot. this maintains the same behaviour but will now work for other multi-tree projects; in practise, the other multi-tree projects did not use .gitmodules files anyway, but some of them used config/submodules/ in our build system. Signed-off-by: Leah Rowe --- include/git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/git.sh b/include/git.sh index ec1ecdd3..6c5c2718 100755 --- a/include/git.sh +++ b/include/git.sh @@ -88,7 +88,7 @@ git_prep() git -C "$tmpgit" reset --hard $rev || $err "git -C $_loc: !reset $rev" git_am_patches "$tmpgit" "$_patchdir" || $err "!am $_loc $_patchdir" - if [ "$project" != "coreboot" ] || [ $# -gt 2 ]; then + if singletree "$project" || [ $# -gt 2 ]; then prep_submodules "$_loc" fi -- cgit v1.2.1