summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorLaMont Jones <lamontjones@google.com>2022-04-11 22:50:11 +0000
committerLaMont Jones <lamontjones@google.com>2022-05-26 00:03:37 +0000
commitbdcba7dc36f1c8e6041681eb5b3b5229c93c7c5c (patch)
treeef0dbd149d7e5cd35c4d007a5052ba42bcc1c881 /main.py
parent1d00a7e2ae64b6c08aff60c2e7ed5c2d89caf8d6 (diff)
downloadgit-repo-bdcba7dc36f1c8e6041681eb5b3b5229c93c7c5c.tar.gz
sync: add multi-manifest supportv2.26
With this change, partial syncs (sync with a project list) are again supported. If the updated manifest includes new sub manifests, download them inheriting options from the parent manifestProject. Change-Id: Id952f85df2e26d34e38b251973be26434443ff56 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/334819 Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: LaMont Jones <lamontjones@google.com>
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.py b/main.py
index 34dfb777..c54f9281 100755
--- a/main.py
+++ b/main.py
@@ -294,8 +294,7 @@ class _Repo(object):
294 cmd.ValidateOptions(copts, cargs) 294 cmd.ValidateOptions(copts, cargs)
295 295
296 this_manifest_only = copts.this_manifest_only 296 this_manifest_only = copts.this_manifest_only
297 # If not specified, default to using the outer manifest. 297 outer_manifest = copts.outer_manifest
298 outer_manifest = copts.outer_manifest is not False
299 if cmd.MULTI_MANIFEST_SUPPORT or this_manifest_only: 298 if cmd.MULTI_MANIFEST_SUPPORT or this_manifest_only:
300 result = cmd.Execute(copts, cargs) 299 result = cmd.Execute(copts, cargs)
301 elif outer_manifest and repo_client.manifest.is_submanifest: 300 elif outer_manifest and repo_client.manifest.is_submanifest: