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

Unified Diff: scm.py

Issue 503085: Fix a typo in scm.GIT.GetBranch() and add --dry_run to trychange.py to ease testing. (Closed)
Patch Set: Created 11 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 | trychange.py » ('j') | trychange.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scm.py
diff --git a/scm.py b/scm.py
index 2e135558801223059bba50f4fa0b892f1f7e5571..53964d337aaa690090c61d0a1280f629277cc243 100644
--- a/scm.py
+++ b/scm.py
@@ -88,7 +88,7 @@ class GIT(object):
@staticmethod
def GetBranch(cwd):
"""Returns the short branch name, e.g. 'master'."""
- return GIT.ShortBranchName(GIT.BranchRef(cwd))
+ return GIT.ShortBranchName(GIT.GetBranchRef(cwd))
@staticmethod
def IsGitSvn(cwd):
« no previous file with comments | « no previous file | trychange.py » ('j') | trychange.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698