diff options
author | LaMont Jones <lamontjones@google.com> | 2022-06-01 21:03:34 +0000 |
---|---|---|
committer | LaMont Jones <lamontjones@google.com> | 2022-06-08 16:49:08 +0000 |
commit | ff6b1dae1e9f2e7405690c1aeedf7e0c7d768460 (patch) | |
tree | c0ffaeea5ed6ccee683f47e6cef5a8897b130cb7 /subcmds/sync.py | |
parent | bdcba7dc36f1c8e6041681eb5b3b5229c93c7c5c (diff) | |
download | git-repo-ff6b1dae1e9f2e7405690c1aeedf7e0c7d768460.tar.gz |
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>
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 0abe23d6..fa61d551 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -316,7 +316,7 @@ later is required to fix a server side protocol bug. | |||
316 | if not have_superproject: | 316 | if not have_superproject: |
317 | return | 317 | return |
318 | 318 | ||
319 | if opt.local_only: | 319 | if opt.local_only and manifest.superproject: |
320 | manifest_path = manifest.superproject.manifest_path | 320 | manifest_path = manifest.superproject.manifest_path |
321 | if manifest_path: | 321 | if manifest_path: |
322 | self._ReloadManifest(manifest_path, manifest) | 322 | self._ReloadManifest(manifest_path, manifest) |