Allow sso remotes for `git cl status`.
Bug:1364237
Change-Id: Iff3419097f86db125990001fe316c9c52974e3b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3899165
Auto-Submit: Joanna Wang <jojwang@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Joanna Wang <jojwang@chromium.org>
diff --git a/git_cl.py b/git_cl.py
index 08b3a4b..4aa1155 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1718,12 +1718,13 @@
if remote_url is None:
logging.warning('invalid remote')
return
- if urllib.parse.urlparse(remote_url).scheme != 'https':
- logging.warning('Ignoring branch %(branch)s with non-https remote '
- '%(remote)s', {
- 'branch': self.branch,
- 'remote': self.GetRemoteUrl()
- })
+ if urllib.parse.urlparse(remote_url).scheme not in ['https', 'sso']:
+ logging.warning(
+ 'Ignoring branch %(branch)s with non-https/sso remote '
+ '%(remote)s', {
+ 'branch': self.branch,
+ 'remote': self.GetRemoteUrl()
+ })
return
# Lazy-loader to identify Gerrit and Git hosts.