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

Unified Diff: recipe_engine/package.py

Issue 1849563004: Fix: Use -C instead of --git-dir. (Closed) Base URL: https://github.com/luci/recipes-py@master
Patch Set: Created 4 years, 9 months 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 | unittests/package_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_engine/package.py
diff --git a/recipe_engine/package.py b/recipe_engine/package.py
index 1c0e63fe7cfe0ead8c6f9dc43ddd9f5568204ff0..37b0a5a6fa0fd3f3ae9f37c889ed58db6cfc3187 100644
--- a/recipe_engine/package.py
+++ b/recipe_engine/package.py
@@ -199,7 +199,7 @@ class GitRepoSpec(RepoSpec):
def run_git(self, context, *args):
cmd = [self._git]
if context is not None:
- cmd += ['--git-dir', os.path.join(self._dep_dir(context), '.git')]
+ cmd += ['-C', self._dep_dir(context)]
cmd += list(args)
logging.info('Running: %s', cmd)
« no previous file with comments | « no previous file | unittests/package_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698