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

Unified Diff: trychange.py

Issue 3737001: Fix a bug in gclient recurse for git-svn users. Make gclient_utils.CheckCall more versatile. (Closed)
Patch Set: Created 10 years, 2 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 | « tests/gclient_utils_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trychange.py
diff --git a/trychange.py b/trychange.py
index 1cc6ac957357dabac07b55f6ce69cefa76658254..54161b97073e2eaf71c6bed1c229ae0499244455 100755
--- a/trychange.py
+++ b/trychange.py
@@ -436,8 +436,8 @@ def GuessVCS(options, path):
# Git has a command to test if you're in a git tree.
# Try running it, but don't die if we don't have git installed.
try:
- gclient_utils.CheckCall(["git", "rev-parse", "--is-inside-work-tree"],
- real_path)
+ gclient_utils.CheckCall(['git', 'rev-parse', '--is-inside-work-tree'],
+ cwd=real_path)
return GIT(options, path)
except gclient_utils.CheckCallError, e:
if e.returncode != errno.ENOENT and e.returncode != 128:
« no previous file with comments | « tests/gclient_utils_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698