Commit cf77d6e3 authored by Mike Frysinger's avatar Mike Frysinger Committed by LUCI CQ

repo: update to 2.8 launcher

Bug: None
Test: `repo sync` still works
Change-Id: Idfd893d3e7a81a4a2526eb61b9d45641988c32c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2212957Reviewed-by: 's avatarSean McAllister <smcallis@google.com>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
parent 76a2918f
...@@ -133,7 +133,7 @@ if not REPO_REV: ...@@ -133,7 +133,7 @@ if not REPO_REV:
REPO_REV = 'stable' REPO_REV = 'stable'
# increment this whenever we make important changes to this script # increment this whenever we make important changes to this script
VERSION = (2, 5) VERSION = (2, 8)
# increment this if the MAINTAINER_KEYS block is modified # increment this if the MAINTAINER_KEYS block is modified
KEYRING_VERSION = (2, 3) KEYRING_VERSION = (2, 3)
...@@ -317,9 +317,11 @@ def GetParser(gitc_init=False): ...@@ -317,9 +317,11 @@ def GetParser(gitc_init=False):
help='restrict manifest projects to ones with a specified ' help='restrict manifest projects to ones with a specified '
'platform group [auto|all|none|linux|darwin|...]', 'platform group [auto|all|none|linux|darwin|...]',
metavar='PLATFORM') metavar='PLATFORM')
group.add_option('--clone-bundle', action='store_true',
help='enable use of /clone.bundle on HTTP/HTTPS (default if not --partial-clone)')
group.add_option('--no-clone-bundle', group.add_option('--no-clone-bundle',
dest='clone_bundle', default=True, action='store_false', dest='clone_bundle', action='store_false',
help='disable use of /clone.bundle on HTTP/HTTPS') help='disable use of /clone.bundle on HTTP/HTTPS (default if --partial-clone)')
group.add_option('--no-tags', group.add_option('--no-tags',
dest='tags', default=True, action='store_false', dest='tags', default=True, action='store_false',
help="don't fetch tags in the manifest") help="don't fetch tags in the manifest")
...@@ -502,6 +504,9 @@ def _Init(args, gitc_init=False): ...@@ -502,6 +504,9 @@ def _Init(args, gitc_init=False):
opt.quiet = opt.output_mode is False opt.quiet = opt.output_mode is False
opt.verbose = opt.output_mode is True opt.verbose = opt.output_mode is True
if opt.clone_bundle is None:
opt.clone_bundle = False if opt.partial_clone else True
url = opt.repo_url or REPO_URL url = opt.repo_url or REPO_URL
rev = opt.repo_rev or REPO_REV rev = opt.repo_rev or REPO_REV
...@@ -1169,6 +1174,10 @@ def main(orig_args): ...@@ -1169,6 +1174,10 @@ def main(orig_args):
if my_main: if my_main:
repo_main = my_main repo_main = my_main
if not repo_main:
print("fatal: unable to find repo entry point", file=sys.stderr)
sys.exit(1)
ver_str = '.'.join(map(str, VERSION)) ver_str = '.'.join(map(str, VERSION))
me = [sys.executable, repo_main, me = [sys.executable, repo_main,
'--repo-dir=%s' % rel_repo_dir, '--repo-dir=%s' % rel_repo_dir,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment