Index: recipe_modules/git/api.py |
diff --git a/recipe_modules/git/api.py b/recipe_modules/git/api.py |
index e8003dc666c9e7c2e8e554ec544bd50cc3035064..6205730429ff2821a1cd8c4a807e3ff1df8f31fb 100644 |
--- a/recipe_modules/git/api.py |
+++ b/recipe_modules/git/api.py |
@@ -18,7 +18,7 @@ class GitApi(recipe_api.RecipeApi): |
kwargs.setdefault('cwd', self.m.path['checkout']) |
git_cmd = ['git'] |
if self.m.platform.is_win: |
- git_cmd = [self.m.path['depot_tools'].join('git.bat')] |
+ git_cmd = [self.package_resource('git.bat')] |
options = kwargs.pop('git_config_options', {}) |
for k, v in sorted(options.iteritems()): |
git_cmd.extend(['-c', '%s=%s' % (k, v)]) |
@@ -172,8 +172,7 @@ class GitApi(recipe_api.RecipeApi): |
remote_name = 'origin' |
if self.m.platform.is_win: |
- git_setup_args += ['--git_cmd_path', |
- self.m.path['depot_tools'].join('git.bat')] |
+ git_setup_args += ['--git_cmd_path', self.package_resource('git.bat')] |
step_suffix = '' if step_suffix is None else ' (%s)' % step_suffix |
self.m.python( |