diff options
Diffstat (limited to 'repo')
-rwxr-xr-x | repo | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -317,9 +317,11 @@ def GetParser(gitc_init=False): | |||
317 | help='restrict manifest projects to ones with a specified ' | 317 | help='restrict manifest projects to ones with a specified ' |
318 | 'platform group [auto|all|none|linux|darwin|...]', | 318 | 'platform group [auto|all|none|linux|darwin|...]', |
319 | metavar='PLATFORM') | 319 | metavar='PLATFORM') |
320 | group.add_option('--clone-bundle', action='store_true', | ||
321 | help='enable use of /clone.bundle on HTTP/HTTPS (default if not --partial-clone)') | ||
320 | group.add_option('--no-clone-bundle', | 322 | group.add_option('--no-clone-bundle', |
321 | dest='clone_bundle', default=True, action='store_false', | 323 | dest='clone_bundle', action='store_false', |
322 | help='disable use of /clone.bundle on HTTP/HTTPS') | 324 | help='disable use of /clone.bundle on HTTP/HTTPS (default if --partial-clone)') |
323 | group.add_option('--no-tags', | 325 | group.add_option('--no-tags', |
324 | dest='tags', default=True, action='store_false', | 326 | dest='tags', default=True, action='store_false', |
325 | help="don't fetch tags in the manifest") | 327 | help="don't fetch tags in the manifest") |
@@ -502,6 +504,9 @@ def _Init(args, gitc_init=False): | |||
502 | opt.quiet = opt.output_mode is False | 504 | opt.quiet = opt.output_mode is False |
503 | opt.verbose = opt.output_mode is True | 505 | opt.verbose = opt.output_mode is True |
504 | 506 | ||
507 | if opt.clone_bundle is None: | ||
508 | opt.clone_bundle = False if opt.partial_clone else True | ||
509 | |||
505 | url = opt.repo_url or REPO_URL | 510 | url = opt.repo_url or REPO_URL |
506 | rev = opt.repo_rev or REPO_REV | 511 | rev = opt.repo_rev or REPO_REV |
507 | 512 | ||