[gclient_scm] Disable gclient auto config on Windows

Bug: b/328682976
Change-Id: Ic096807302d8d345435c8913d84913aafba3d4d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6367721
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Allen Li <ayatane@chromium.org>
This commit is contained in:
Allen Li
2025-03-18 19:04:40 -07:00
committed by LUCI CQ
parent 0f344dbf8a
commit 817ddf8d4f

View File

@@ -1368,7 +1368,9 @@ class GitWrapper(SCMWrapper):
gclient_utils.safe_makedirs(parent_dir)
# Set up Git authentication configuration that is needed to clone/fetch the repo.
if newauth.Enabled():
#
# Disabled on Windows
if newauth.Enabled() and os.name != 'nt':
# We need the host from the URL to determine auth settings.
# The url parameter might have been re-written to a local
# cache directory, so we need self.url, which contains the