From f855611c99bb8a4291de637c56a9e47a581a2f9a Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 20 Oct 2023 07:47:10 +0100 Subject: include/git: only download submodules if possible Signed-off-by: Leah Rowe --- include/git.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/git.sh b/include/git.sh index ce7a2625..5c3ee81e 100755 --- a/include/git.sh +++ b/include/git.sh @@ -60,7 +60,8 @@ prepare_new_tree() git_reset_rev "src/${project}/${tree}" "${rev}" ( x_ cd "src/${project}/${tree}" - git submodule update --init --checkout || \ + [ ! -f ".gitmodules" ] || \ + git submodule update --init --checkout || \ err "prepare_new_tree ${project}/${tree}: can't update git modules" ) git_am_patches "$PWD/src/$project/$tree" "$PWD/$cfgsdir/$tree/patches" -- cgit v1.2.1