From c0f7c05c50bf12504898951cacc8520fa2232989 Mon Sep 17 00:00:00 2001 From: Allen Li Date: Tue, 16 Jul 2024 20:55:23 +0000 Subject: [PATCH] [git_cl] Fix missing variable Bug: b/351071334 Change-Id: I337dc37c69be6eb2197bda23098506eb1ab90709 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5709132 Reviewed-by: Yiwei Zhang Commit-Queue: Allen Li --- git_cl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git_cl.py b/git_cl.py index 612336306..5358c5770 100755 --- a/git_cl.py +++ b/git_cl.py @@ -3730,12 +3730,12 @@ class GitAuthConfigChanger(object): return cls( cwd=os.getcwd(), host_shortname=host_shortname, - mode=cls._infer_mode(), + mode=cls._infer_mode(gerrit_host), remote_url=remote_url, ) @staticmethod - def _infer_mode() -> GitConfigMode: + def _infer_mode(gerrit_host: str) -> GitConfigMode: """Infer default mode to use.""" if not newauth.Enabled(): return GitConfigMode.OLD_AUTH