Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(661)

Unified Diff: gclient.bat

Issue 437042: Fix using depot_tools from a git checkout on Windows. (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient.bat
diff --git a/gclient.bat b/gclient.bat
index fa3c9891c8e6e262a5458b59bb0df8ad6eb5f917..0639defd772137cee65b6263bd0e0dc6a679fa0e 100755
--- a/gclient.bat
+++ b/gclient.bat
@@ -11,11 +11,6 @@ setlocal
:: This is required with cygwin only.
PATH=%~dp0;%PATH%
-:: Shall skip automatic update?
-IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :SKIP_UPDATE
-:: We can't sync if .\.svn\. doesn't exist.
-IF NOT EXIST "%~dp0.svn\." GOTO :SKIP_UPDATE
-
:: Will download svn and python.
:: If you don't want to install the depot_tools version of these tools, remove
:: the 'force' option on the next command. The tools won't be installed only if
@@ -23,7 +18,12 @@ IF NOT EXIST "%~dp0.svn\." GOTO :SKIP_UPDATE
call "%~dp0bootstrap\win\win_tools.bat" force
if errorlevel 1 goto :EOF
-:: Sync the bootstrap directory *only after*.
+:: Shall skip automatic update?
+IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :SKIP_UPDATE
+:: We can't sync if .\.svn\. doesn't exist.
+IF NOT EXIST "%~dp0.svn\." GOTO :SKIP_UPDATE
+
+:: Sync the bootstrap directory.
call svn up -q "%~dp0bootstrap"
:: still continue even in case of error.
goto :UPDATE
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698