summaryrefslogtreecommitdiffstats
path: root/subcmds/start.py
diff options
context:
space:
mode:
authorLaMont Jones <lamontjones@google.com>2021-11-18 22:40:18 +0000
committerLaMont Jones <lamontjones@google.com>2022-02-17 21:57:55 +0000
commitcc879a97c3e2614d19b15b4661c3cab4d33139c9 (patch)
tree69d225e9f0e9d79fec8f423d9c40c275f0bf3b8c /subcmds/start.py
parent87cce68b28c34fa86895baa8d7f48307382e6c75 (diff)
downloadgit-repo-cc879a97c3e2614d19b15b4661c3cab4d33139c9.tar.gz
Add multi-manifest support with <submanifest> elementv2.22
To be addressed in another change: - a partial `repo sync` (with a list of projects/paths to sync) requires `--this-tree-only`. Change-Id: I6c7400bf001540e9d7694fa70934f8f204cb5f57 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/322657 Tested-by: LaMont Jones <lamontjones@google.com> Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/start.py')
-rw-r--r--subcmds/start.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/subcmds/start.py b/subcmds/start.py
index 2addaf2e..809df963 100644
--- a/subcmds/start.py
+++ b/subcmds/start.py
@@ -84,7 +84,8 @@ revision specified in the manifest.
84 projects = ['.'] # start it in the local project by default 84 projects = ['.'] # start it in the local project by default
85 85
86 all_projects = self.GetProjects(projects, 86 all_projects = self.GetProjects(projects,
87 missing_ok=bool(self.gitc_manifest)) 87 missing_ok=bool(self.gitc_manifest),
88 all_manifests=not opt.this_manifest_only)
88 89
89 # This must happen after we find all_projects, since GetProjects may need 90 # This must happen after we find all_projects, since GetProjects may need
90 # the local directory, which will disappear once we save the GITC manifest. 91 # the local directory, which will disappear once we save the GITC manifest.
@@ -137,6 +138,6 @@ revision specified in the manifest.
137 138
138 if err: 139 if err:
139 for p in err: 140 for p in err:
140 print("error: %s/: cannot start %s" % (p.relpath, nb), 141 print("error: %s/: cannot start %s" % (p.RelPath(local=opt.this_manifest_only), nb),
141 file=sys.stderr) 142 file=sys.stderr)
142 sys.exit(1) 143 sys.exit(1)