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

Unified Diff: git_cl.py

Issue 8930002: Enforce cwd for GIT functions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years 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 | git_try.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index 387aa9b01ce4c4fe9143fbcb1469fabba1f03a19..a8669a37360b31e4db51071c4928bf6ddd820bf8 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -500,7 +500,7 @@ or verify this branch is set up to track another (via the --track argument to
name = RunCommand(['git', 'rev-parse', 'HEAD']).strip()
# Need to pass a relative path for msysgit.
try:
- files = scm.GIT.CaptureStatus([root], upstream_branch)
+ files = scm.GIT.CaptureStatus([root], '.', upstream_branch)
except subprocess2.CalledProcessError:
DieWithError(
('\nFailed to diff against upstream branch %s!\n\n'
« no previous file with comments | « no previous file | git_try.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698