Fix logic for checking whether git is installed.

TBR=maruel@chromium.org
Review URL: https://codereview.chromium.org/11377002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@166259 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
szager@google.com 13 years ago
parent a0ad8ad9c9
commit 6a12660bc6

@ -25,7 +25,7 @@ if "%1" == "force" (
:GIT_CHECK
:: If the batch file exists, skip the git check.
if not exist "%WIN_TOOLS_ROOT_DIR%\%GIT_BIN_DIR%" goto :GIT_INSTALL
if exist "%WIN_TOOLS_ROOT_DIR%\%GIT_BIN_DIR%" goto :SVN_CHECK
if "%CHROME_HEADLESS%" == "1" goto :SVN_CHECK
if "%WIN_TOOLS_FORCE%" == "1" goto :GIT_INSTALL
call git --version 2>nul 1>nul

Loading…
Cancel
Save