Commit ee1a2c72 authored by Josip Sokcevic's avatar Josip Sokcevic Committed by LUCI CQ

Bootstrap git_cache using main as default branch

Bug: 1238084
Change-Id: I805f1e7b294c5317adeb7206a021d173e045e8f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3082645
Auto-Submit: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: 's avatarAnthony Polito <apolito@google.com>
Commit-Queue: Anthony Polito <apolito@google.com>
parent e989bf92
......@@ -487,7 +487,7 @@ class Mirror(object):
self._fetch(self.mirror_path, verbose, depth, no_fetch_tags,
reset_fetch_config)
def update_bootstrap(self, prune=False, gc_aggressive=False, branch='master'):
def update_bootstrap(self, prune=False, gc_aggressive=False, branch='main'):
# The folder is <git number>
gen_number = subprocess.check_output(
[self.git_exe, 'number', branch],
......@@ -612,8 +612,8 @@ def CMDupdate_bootstrap(parser, args):
help='Run aggressive repacking of the repo.')
parser.add_option('--prune', action='store_true',
help='Prune all other cached bundles of the same repo.')
parser.add_option('--branch', default='master',
help='Branch to use for bootstrap. (Default \'master\')')
parser.add_option('--branch', default='main',
help='Branch to use for bootstrap. (Default \'main\')')
populate_args = args[:]
options, args = parser.parse_args(args)
......
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