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

Unified Diff: trychange.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 | « scm.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 cdd17ad32d22d9bab283130116f1ed6e05172d50..d227472e76caec7efe175fd812b02d5b4c0d3541 100755
--- a/trychange.py
+++ b/trychange.py
@@ -275,13 +275,17 @@ class GIT(SCM):
logging.info("GIT(%s)" % self.checkout_root)
def CaptureStatus(self):
- return scm.GIT.CaptureStatus(self.checkout_root.replace(os.sep, '/'),
- self.diff_against)
+ return scm.GIT.CaptureStatus(
+ [],
+ self.checkout_root.replace(os.sep, '/'),
+ self.diff_against)
def GenerateDiff(self):
- return scm.GIT.GenerateDiff(self.checkout_root, files=self.files,
- full_move=True,
- branch=self.diff_against)
+ return scm.GIT.GenerateDiff(
+ self.checkout_root,
+ files=self.files,
+ full_move=True,
+ branch=self.diff_against)
def _ParseSendChangeOptions(options):
« no previous file with comments | « scm.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698