git: use new python script to bootstrap git on windows

BUG=635421, 629679

Recipe-Tryjob-Bypass-Reason: downstream changes expected
Review-Url: https://codereview.chromium.org/2264583002
changes/00/373500/1
phajdan.jr 9 years ago committed by Commit bot
parent df09a46d7c
commit 2cbf79f3c9

@ -41,9 +41,10 @@ class GitApi(recipe_api.RecipeApi):
"""Ensures that depot_tools/git.bat actually exists.""" """Ensures that depot_tools/git.bat actually exists."""
if not self.m.platform.is_win or self.initialized_win_git: if not self.m.platform.is_win or self.initialized_win_git:
return return
self.m.step( self.m.python(
'ensure git tooling on windows', 'ensure git tooling on windows',
[self.package_repo_resource('bootstrap', 'win', 'win_tools.bat')], self.package_repo_resource('bootstrap', 'win', 'git_bootstrap.py'),
['--verbose'],
infra_step=True, infra_step=True,
cwd=self.package_repo_resource(), cwd=self.package_repo_resource(),
timeout=300) timeout=300)

@ -1,7 +1,10 @@
[ [
{ {
"cmd": [ "cmd": [
"RECIPE_PACKAGE_REPO[depot_tools]\\bootstrap\\win\\win_tools.bat" "python",
"-u",
"RECIPE_PACKAGE_REPO[depot_tools]\\bootstrap\\win\\git_bootstrap.py",
"--verbose"
], ],
"cwd": "RECIPE_PACKAGE_REPO[depot_tools]", "cwd": "RECIPE_PACKAGE_REPO[depot_tools]",
"name": "ensure git tooling on windows", "name": "ensure git tooling on windows",

@ -1,7 +1,10 @@
[ [
{ {
"cmd": [ "cmd": [
"RECIPE_PACKAGE_REPO[depot_tools]\\bootstrap\\win\\win_tools.bat" "python",
"-u",
"RECIPE_PACKAGE_REPO[depot_tools]\\bootstrap\\win\\git_bootstrap.py",
"--verbose"
], ],
"cwd": "RECIPE_PACKAGE_REPO[depot_tools]", "cwd": "RECIPE_PACKAGE_REPO[depot_tools]",
"name": "ensure git tooling on windows", "name": "ensure git tooling on windows",

@ -1,7 +1,10 @@
[ [
{ {
"cmd": [ "cmd": [
"RECIPE_PACKAGE_REPO[depot_tools]\\bootstrap\\win\\win_tools.bat" "python",
"-u",
"RECIPE_PACKAGE_REPO[depot_tools]\\bootstrap\\win\\git_bootstrap.py",
"--verbose"
], ],
"cwd": "RECIPE_PACKAGE_REPO[depot_tools]", "cwd": "RECIPE_PACKAGE_REPO[depot_tools]",
"name": "ensure git tooling on windows", "name": "ensure git tooling on windows",

Loading…
Cancel
Save