|
@@ -34,12 +34,15 @@ IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :EOF
|
|
|
|
|
|
echo Updating depot_tools...
|
|
|
|
|
|
-:: Download git for the first time if it's not present.
|
|
|
+:: Trigger generating depot_tools' git wrappers in case they are in a bad state.
|
|
|
+:: This can happen if there was a problem installing CIPD packages in the
|
|
|
+:: previous attempt to update depot_tools, and the bootstrapping script was not
|
|
|
+:: run.
|
|
|
call git --version > nul 2>&1
|
|
|
if %ERRORLEVEL% == 0 goto :GIT_UPDATE
|
|
|
call "%DEPOT_TOOLS_DIR%bootstrap\win_tools.bat"
|
|
|
if errorlevel 1 (
|
|
|
- echo Error updating depot_tools, no revision tool found.
|
|
|
+ echo Error updating depot_tools - Git not found.
|
|
|
exit /b %ERRORLEVEL%
|
|
|
)
|
|
|
|
|
@@ -65,5 +68,5 @@ if errorlevel 1 (
|
|
|
:: Sync CIPD and CIPD client tools.
|
|
|
call "%~dp0\cipd_bin_setup.bat"
|
|
|
|
|
|
-:: Update git and python.
|
|
|
+:: Update python and generate git wrappers.
|
|
|
call "%DEPOT_TOOLS_DIR%bootstrap\win_tools.bat"
|