From ff6b1dae1e9f2e7405690c1aeedf7e0c7d768460 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Wed, 1 Jun 2022 21:03:34 +0000 Subject: 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 Reviewed-by: Mike Frysinger --- subcmds/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subcmds/sync.py') 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. 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) -- cgit v1.2.3-54-g00ecf