From adaa1d8734b9759c6e5fcb89398f34659aec49da Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Thu, 10 Feb 2022 17:34:36 +0000 Subject: project.py: pass --recurse-submodules={value} If submodules is False, explicitly pass '=no'. Uninitialized submodules may cause the default option to fail. Change-Id: Ia00bcba5b69c4b65195f4c469c686a3ef9a4a3ad Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/330159 Reviewed-by: Xin Li Tested-by: LaMont Jones --- project.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'project.py') diff --git a/project.py b/project.py index 41e81d1f..ff91d189 100644 --- a/project.py +++ b/project.py @@ -2142,8 +2142,7 @@ class Project(object): if prune: cmd.append('--prune') - if submodules: - cmd.append('--recurse-submodules=on-demand') + cmd.append(f'--recurse-submodules={"on-demand" if submodules else "no"}') spec = [] if not current_branch_only: -- cgit v1.2.3-54-g00ecf