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

Unified Diff: git_try.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 | « git_cl.py ('k') | scm.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_try.py
diff --git a/git_try.py b/git_try.py
index a36a19f245434846b8abadc949f72b518ce2869c..45a5217e6f2a5fdd665af049c7f57b867ca98228 100755
--- a/git_try.py
+++ b/git_try.py
@@ -19,7 +19,8 @@ import git_cl
def GetRietveldIssueNumber():
try:
return GIT.Capture(
- ['config', 'branch.%s.rietveldissue' % GIT.GetBranch(None)]).strip()
+ ['config', 'branch.%s.rietveldissue' % GIT.GetBranch('.')],
+ '.').strip()
except subprocess2.CalledProcessError:
return None
@@ -27,14 +28,15 @@ def GetRietveldIssueNumber():
def GetRietveldPatchsetNumber():
try:
return GIT.Capture(
- ['config', 'branch.%s.rietveldpatchset' % GIT.GetBranch(None)]).strip()
+ ['config', 'branch.%s.rietveldpatchset' % GIT.GetBranch('.')],
+ '.').strip()
except subprocess2.CalledProcessError:
return None
def GetRietveldServerUrl():
try:
- return GIT.Capture(['config', 'rietveld.server']).strip()
+ return GIT.Capture(['config', 'rietveld.server'], '.').strip()
except subprocess2.CalledProcessError:
return None
« no previous file with comments | « git_cl.py ('k') | scm.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698