From bdcba7dc36f1c8e6041681eb5b3b5229c93c7c5c Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Mon, 11 Apr 2022 22:50:11 +0000 Subject: sync: add multi-manifest support 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 Tested-by: LaMont Jones --- subcmds/init.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'subcmds/init.py') diff --git a/subcmds/init.py b/subcmds/init.py index 6e3951c9..cced44d5 100644 --- a/subcmds/init.py +++ b/subcmds/init.py @@ -89,11 +89,10 @@ to update the working directory files. def _Options(self, p, gitc_init=False): Wrapper().InitParser(p, gitc_init=gitc_init) m = p.add_option_group('Multi-manifest') - m.add_option('--outer-manifest', action='store_true', + m.add_option('--outer-manifest', action='store_true', default=True, help='operate starting at the outermost manifest') m.add_option('--no-outer-manifest', dest='outer_manifest', - action='store_false', default=None, - help='do not operate on outer manifests') + action='store_false', help='do not operate on outer manifests') m.add_option('--this-manifest-only', action='store_true', default=None, help='only operate on this (sub)manifest') m.add_option('--no-this-manifest-only', '--all-manifests', -- cgit v1.2.3-54-g00ecf