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: