From b5029f0194c55045fd54d19878310278b0136810 Mon Sep 17 00:00:00 2001 From: Allen Li Date: Wed, 24 Jul 2024 21:41:24 +0000 Subject: [PATCH] [git_cl] Add NO_AUTH enum There's going to be a use case to clear auth configuration even after we remove the old auth stack. Renumbering is safe because this enum is not stored outside of runtime. Bug: b/351071334 Change-Id: Ib6522ffa6f1c8d817a37cce48d1abf2fcd7be339 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5727083 Commit-Queue: Allen Li Reviewed-by: Yiwei Zhang --- git_cl.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/git_cl.py b/git_cl.py index cbaaf93510..c8d16a7662 100755 --- a/git_cl.py +++ b/git_cl.py @@ -3679,9 +3679,10 @@ def ClearGitRepoAuth() -> None: class GitAuthMode(enum.Enum): """Modes to pass to GitAuthConfigChanger""" - NEW_AUTH = 1 - NEW_AUTH_SSO = 2 - OLD_AUTH = 3 + NO_AUTH = 1 + OLD_AUTH = 1 # TODO(ayatane): remove later + NEW_AUTH = 2 + NEW_AUTH_SSO = 3 class GitAuthConfigChanger(object):