From c474c9cba1a8fbe09c219cc588d9ed334d31cd1e Mon Sep 17 00:00:00 2001 From: Jack Neus Date: Mon, 26 Jul 2021 23:08:54 +0000 Subject: repo: Add support for standalone manifests Added --standalone_manifest to repo tool. If set, the manifest is downloaded directly from the appropriate source (currently, we only support GS) and used instead of creating a manifest git checkout. The manifests.git repo is still created to keep track of various config but is marked as being for a standalone manifest so that the repo tool doesn't try to run networked git commands in it. BUG=b:192664812 TEST=existing tests (no coverage), manual runs Change-Id: I84378cbc7f8e515eabeccdde9665efc8cd2a9d21 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/312942 Tested-by: Jack Neus Reviewed-by: Mike Frysinger --- repo | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'repo') diff --git a/repo b/repo index 3b244c16..f61639f3 100755 --- a/repo +++ b/repo @@ -312,6 +312,10 @@ def InitParser(parser, gitc_init=False): metavar='PLATFORM') group.add_option('--submodules', action='store_true', help='sync any submodules associated with the manifest repo') + group.add_option('--standalone-manifest', action='store_true', + help='download the manifest as a static file ' + 'rather then create a git checkout of ' + 'the manifest repo') # Options that only affect manifest project, and not any of the projects # specified in the manifest itself. -- cgit v1.2.3-54-g00ecf