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: Anthony Polito <apolito@google.com>
Commit-Queue: Anthony Polito <apolito@google.com>
diff --git a/git_cache.py b/git_cache.py
index cef1e14..9a4bed9 100755
--- a/git_cache.py
+++ b/git_cache.py
@@ -487,7 +487,7 @@
         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 @@
                     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)