From 817ddf8d4f35a846b0ee9d76467456113b1456ec Mon Sep 17 00:00:00 2001 From: Allen Li Date: Tue, 18 Mar 2025 19:04:40 -0700 Subject: [PATCH] [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 Commit-Queue: Allen Li --- gclient_scm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gclient_scm.py b/gclient_scm.py index 416eb31385..7c79afa1ef 100644 --- a/gclient_scm.py +++ b/gclient_scm.py @@ -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