From ee1a2c72b7ddff4149206d1ef8f5e91d0fa4d1a4 Mon Sep 17 00:00:00 2001 From: Josip Sokcevic Date: Mon, 9 Aug 2021 21:09:08 +0000 Subject: [PATCH] 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 Reviewed-by: Anthony Polito Commit-Queue: Anthony Polito --- git_cache.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/git_cache.py b/git_cache.py index cef1e145c..9a4bed9ce 100755 --- a/git_cache.py +++ b/git_cache.py @@ -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 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)