From 253031197f522d54a8562e5b6b9d9dceacf3391b Mon Sep 17 00:00:00 2001 From: Will Cassella Date: Wed, 29 Jun 2022 21:48:21 +0000 Subject: [PATCH] Allow depot_tools/.git to be a file This CL relaxes the check for the .git folder on Windows so that it may be either a file or a folder, as may be the case if depot_tools is a git submodule or a worktree. Bug: 1333997 Change-Id: Ib805912903696fc247f85d15c35b6e3093cd57f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3736684 Commit-Queue: Will Cassella Reviewed-by: Bruce Dawson Reviewed-by: Aravind Vasudevan --- update_depot_tools.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_depot_tools.bat b/update_depot_tools.bat index 1e385545e..caf200a61 100644 --- a/update_depot_tools.bat +++ b/update_depot_tools.bat @@ -49,7 +49,7 @@ if errorlevel 1 ( set errorlevel= :: Make sure DEPOT_TOOLS_DIR is a git repo -IF NOT EXIST "%DEPOT_TOOLS_DIR%.git\" ( +IF NOT EXIST "%DEPOT_TOOLS_DIR%.git" ( echo Error: Your depot_tools directory does not appear to be a git repository, and cannot be updated. echo Consider deleting your depot_tools directory and following the instructions at https://www.chromium.org/developers/how-tos/install-depot-tools/ to reinstall it. exit /b 1