depot_tools: Use git-checkout instead of git-rebase.

Changes like crrev.com/c/1752507, where a file that was previously in
.gitignore becomes part of the repo, makes update_depot_tools fail
to rebase.

Use git checkout origin/master instead.

Bug: 996359
Change-Id: Ib1a43b8842cebce96ab1fabaedc8e5653b9a708e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1764708
Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
This commit is contained in:
Edward Lemur
2019-08-22 17:57:25 +00:00
committed by Commit Bot
parent 4c55b35558
commit 7f90416c08
2 changed files with 3 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ for /F %%x in ('git config --get remote.origin.url') DO (
)
)
call git fetch -q origin > NUL
call git rebase -q origin/master > NUL
call git checkout origin/master > NUL
if errorlevel 1 (
echo Failed to update depot_tools.
goto :EOF