Only sync superproject if it will be used.
If the user says `--no-use-superproject`, then do not bother syncing the superproject. Also add/update docstrings and comments throughout. Change-Id: I9cdad706130501bab9a22d3099a1dae605e9c194 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/338975 Tested-by: LaMont Jones <lamontjones@google.com> Reviewed-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
parent
bdcba7dc36
commit
ff6b1dae1e
5 changed files with 71 additions and 20 deletions
|
@ -316,7 +316,7 @@ later is required to fix a server side protocol bug.
|
|||
if not have_superproject:
|
||||
return
|
||||
|
||||
if opt.local_only:
|
||||
if opt.local_only and manifest.superproject:
|
||||
manifest_path = manifest.superproject.manifest_path
|
||||
if manifest_path:
|
||||
self._ReloadManifest(manifest_path, manifest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue