From ffd07cc90d8e6487ab3d216f1bb1de2698a73c57 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 9 Oct 2023 16:34:09 +0000 Subject: [PATCH] cros: handle CitC checkouts Change-Id: Ie1183f1e6daca9cda9fb685c18b244a2defe99f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4922171 Commit-Queue: George Engelbrecht Auto-Submit: Mike Frysinger Reviewed-by: George Engelbrecht --- cros | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cros b/cros index a791f13ac..f32da54d2 100755 --- a/cros +++ b/cros @@ -33,9 +33,16 @@ def _FindChromite(path): # Depending on the checkout type (whether repo chromeos or gclient chrome) # Chromite lives in a different location. roots = ( + # CrOS checkout using normal manifest. ('.repo', 'chromite/.git'), + # CrOS checkout using CitC. + ('../.citc', 'chromite/__init__.py'), + # Chromium checkout using gclient+DEPS. ('.gclient', 'src/third_party/chromite/.git'), + # Chromium checkout using git submodules. ('src/.gitmodules', 'src/third_party/chromite/.git'), + # Chromium checkout using CitC. + ('../.citc', 'third_party/chromite/__init__.py'), ) while path != '/':