From b415544db48dc6608ece80e11595434f3904ec37 Mon Sep 17 00:00:00 2001 From: Joanna Wang Date: Thu, 1 Sep 2022 20:41:20 +0000 Subject: [PATCH] Add cog/ cwd for fetch. Bug: 1354709, b/242209562 Change-Id: I48b5575c7a4b8855a8b1f95ced24acadaea39a59 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3865737 Commit-Queue: Aravind Vasudevan Auto-Submit: Joanna Wang Reviewed-by: Aravind Vasudevan --- fetch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fetch.py b/fetch.py index ba54cc8c0..e12e7d34e 100755 --- a/fetch.py +++ b/fetch.py @@ -262,7 +262,8 @@ def run(options, spec, root): # Use sso:// by default if the env is cog if not options.protocol_override and \ - os.getcwd().startswith('/google/src/cloud'): + (any(os.getcwd().startswith(x) for x in [ + '/google/src/cloud', '/google/cog/cloud'])): options.protocol_override = 'sso' # Update solutions with protocol_override field