diff options
author | LaMont Jones <lamontjones@google.com> | 2022-04-11 22:50:11 +0000 |
---|---|---|
committer | LaMont Jones <lamontjones@google.com> | 2022-05-26 00:03:37 +0000 |
commit | bdcba7dc36f1c8e6041681eb5b3b5229c93c7c5c (patch) | |
tree | ef0dbd149d7e5cd35c4d007a5052ba42bcc1c881 /main.py | |
parent | 1d00a7e2ae64b6c08aff60c2e7ed5c2d89caf8d6 (diff) | |
download | git-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-x | main.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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: |