diff options
| author | LaMont Jones <lamontjones@google.com> | 2022-02-10 17:34:36 +0000 |
|---|---|---|
| committer | LaMont Jones <lamontjones@google.com> | 2022-02-10 23:57:45 +0000 |
| commit | adaa1d8734b9759c6e5fcb89398f34659aec49da (patch) | |
| tree | 31c6bd6c01436636b0790a6620db33ae823c159e | |
| parent | 8e91248655acf1c8044ed8c1b265b804a99eb07f (diff) | |
| download | git-repo-adaa1d8734b9759c6e5fcb89398f34659aec49da.tar.gz | |
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 <delphij@google.com>
Tested-by: LaMont Jones <lamontjones@google.com>
| -rw-r--r-- | project.py | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -2142,8 +2142,7 @@ class Project(object): | |||
| 2142 | if prune: | 2142 | if prune: |
| 2143 | cmd.append('--prune') | 2143 | cmd.append('--prune') |
| 2144 | 2144 | ||
| 2145 | if submodules: | 2145 | cmd.append(f'--recurse-submodules={"on-demand" if submodules else "no"}') |
| 2146 | cmd.append('--recurse-submodules=on-demand') | ||
| 2147 | 2146 | ||
| 2148 | spec = [] | 2147 | spec = [] |
| 2149 | if not current_branch_only: | 2148 | if not current_branch_only: |
