From 4492c37a14be41e3a3bf53234c53671b6e649a8e Mon Sep 17 00:00:00 2001 From: Takuto Ikuta Date: Fri, 22 Mar 2019 04:19:37 +0000 Subject: [PATCH] [gclient] enable git protocol version 2 for windows We updated git client to 2.21, so let's use git protocol version 2. Bug: 875453 Change-Id: I5bd12c5fdcd4b87a067e5c85dd9c464e5d3bade9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1534211 Commit-Queue: Takuto Ikuta Commit-Queue: Andrii Shyshkalov Auto-Submit: Takuto Ikuta Reviewed-by: Andrii Shyshkalov --- bootstrap/win/win_tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap/win/win_tools.py b/bootstrap/win/win_tools.py index 436513c80..dc16d2bc7 100644 --- a/bootstrap/win/win_tools.py +++ b/bootstrap/win/win_tools.py @@ -231,7 +231,7 @@ def clean_up_old_installations(skip_dir): # Version of "git_postprocess" system configuration (see |git_postprocess|). -GIT_POSTPROCESS_VERSION = '1' +GIT_POSTPROCESS_VERSION = '2' def git_get_mingw_dir(git_directory): @@ -273,6 +273,7 @@ def git_postprocess(template, git_directory): _check_call([git_bat_path, 'config', '--system', 'core.preloadindex', 'true']) _check_call([git_bat_path, 'config', '--system', 'core.fscache', 'true']) + _check_call([git_bat_path, 'config', '--system', 'protocol.version', '2']) call_if_outdated( os.path.join(git_directory, '.git_postprocess'),