diff options
author | Jack Neus <jackneus@google.com> | 2021-07-26 23:08:54 +0000 |
---|---|---|
committer | Jack Neus <jackneus@google.com> | 2021-09-28 15:40:46 +0000 |
commit | c474c9cba1a8fbe09c219cc588d9ed334d31cd1e (patch) | |
tree | 16cfecbac2dcd974c7971536bf2bda15d7296f66 /repo | |
parent | 956f7363d100abe6c1f58b36d7aea59b9e41cd04 (diff) | |
download | git-repo-c474c9cba1a8fbe09c219cc588d9ed334d31cd1e.tar.gz |
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 <jackneus@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'repo')
-rwxr-xr-x | repo | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -312,6 +312,10 @@ def InitParser(parser, gitc_init=False): | |||
312 | metavar='PLATFORM') | 312 | metavar='PLATFORM') |
313 | group.add_option('--submodules', action='store_true', | 313 | group.add_option('--submodules', action='store_true', |
314 | help='sync any submodules associated with the manifest repo') | 314 | help='sync any submodules associated with the manifest repo') |
315 | group.add_option('--standalone-manifest', action='store_true', | ||
316 | help='download the manifest as a static file ' | ||
317 | 'rather then create a git checkout of ' | ||
318 | 'the manifest repo') | ||
315 | 319 | ||
316 | # Options that only affect manifest project, and not any of the projects | 320 | # Options that only affect manifest project, and not any of the projects |
317 | # specified in the manifest itself. | 321 | # specified in the manifest itself. |