[git_cl] Fix ShouldUseSSO call

(This did not error since this code path is unreachable, to be fixed
in future CL)

Bug: b/348024314
Change-Id: I115b36a828d5e525c54cebdbec5480514e395da7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5651989
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
changes/89/5651989/4
Allen Li 11 months ago committed by LUCI CQ
parent 0525d8afa7
commit cb5a8a3315

@ -3613,10 +3613,11 @@ def DownloadGerritHook(force):
def ConfigureGitRepoAuth() -> None:
"""Configure the current Git repo authentication."""
logging.debug('Configuring current Git repo authentication...')
cl = Changelist()
cwd = os.getcwd()
gerrit_host = cl.GetGerritHost()
if gerrit_util.ShouldUseSSO(email):
if gerrit_util.ShouldUseSSO():
scm.GIT.SetConfig(cwd,
f'credential.{gerrit_host}.helper',
None,

Loading…
Cancel
Save