git_cl: Delete usages of AutoConfigure

Has been no-op for a while, remove it now

Bug: 446999231
Change-Id: I9f4e5b9cbd6a5cb8e84fba2f0ebb949b2a88d9ff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6981220
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
This commit is contained in:
Allen Li
2025-09-24 16:06:55 -07:00
committed by LUCI CQ
parent a115a3973b
commit 06da8b2a8f
3 changed files with 0 additions and 15 deletions

View File

@@ -261,19 +261,6 @@ class ConfigChanger(object):
self._set_config_func(*args, **kwargs)
def AutoConfigure(cwd: str, cl: git_cl.Changelist) -> None:
"""Configure Git authentication automatically.
This tracks when the config that has already been applied and skips
doing anything if so.
This may modify the global Git config and the local repo config as
needed.
"""
# TODO(ayatane): Disable prior to removal
return
def Configure(cwd: str, cl: git_cl.Changelist) -> None:
"""Configure Git authentication.

View File

@@ -2397,7 +2397,6 @@ class Changelist(object):
return
if newauth.Enabled():
git_auth.AutoConfigure(os.getcwd(), Changelist())
return
# Lazy-loader to identify Gerrit and Git hosts.

View File

@@ -2445,7 +2445,6 @@ class TestGitCl(unittest.TestCase):
mock.patch(
'git_cl.gerrit_util.CookiesAuthenticator',
CookiesAuthenticatorMockFactory(hosts_with_creds=auth)).start()
mock.patch('git_auth.AutoConfigure', return_value=None).start()
scm.GIT.SetConfig('', 'remote.origin.url',
'https://chromium.googlesource.com/my/repo')
cl = git_cl.Changelist()