From e8bc1aa828ba7c3ad04a0a1ad80597f4f201a082 Mon Sep 17 00:00:00 2001 From: "e.hakkinen@samsung.com" Date: Wed, 8 Apr 2015 08:00:37 +0000 Subject: [PATCH] gclient: Add '--no-bootstrap' sync option. Review URL: https://codereview.chromium.org/1050853002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@294714 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient.py | 3 +++ gclient_scm.py | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gclient.py b/gclient.py index 41f9d5b3d..7d0767069 100755 --- a/gclient.py +++ b/gclient.py @@ -2024,6 +2024,9 @@ def CMDsync(parser, args): parser.add_option('--shallow', action='store_true', help='GIT ONLY - Do a shallow clone into the cache dir. ' 'Requires Git 1.9+') + parser.add_option('--no_bootstrap', '--no-bootstrap', + action='store_true', + help='Don\'t bootstrap from Google Storage.') parser.add_option('--ignore_locks', action='store_true', help='GIT ONLY - Ignore cache locks.') (options, args) = parser.parse_args(args) diff --git a/gclient_scm.py b/gclient_scm.py index 24064f92b..c6e9b6896 100644 --- a/gclient_scm.py +++ b/gclient_scm.py @@ -851,7 +851,9 @@ class GitWrapper(SCMWrapper): depth = 10000 else: depth = None - mirror.populate(verbose=options.verbose, bootstrap=True, depth=depth, + mirror.populate(verbose=options.verbose, + bootstrap=not getattr(options, 'no_bootstrap', False), + depth=depth, ignore_lock=getattr(options, 'ignore_locks', False)) mirror.unlock()