Commit 4492c37a authored by Takuto Ikuta's avatar Takuto Ikuta Committed by Commit Bot

[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 <tikuta@chromium.org>
Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: 's avatarAndrii Shyshkalov <tandrii@chromium.org>
parent 65ace127
......@@ -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'),
......
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