minor cleanup w/ chases's feedback from CL 6665018.
http://codereview.chromium.org/6665018/
Review URL: http://codereview.chromium.org/6686060
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@78098 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl/git_cl.py b/git_cl/git_cl.py
index 8300cc3..aaa2670 100644
--- a/git_cl/git_cl.py
+++ b/git_cl/git_cl.py
@@ -741,10 +741,10 @@
root = RunCommand(['git', 'rev-parse', '--show-cdup']).strip()
if not root:
- root = "."
+ root = '.'
absroot = os.path.abspath(root)
if not root:
- raise Exception("Could not get root directory.")
+ raise Exception('Could not get root directory.')
# We use the sha1 of HEAD as a name of this change.
name = RunCommand(['git', 'rev-parse', 'HEAD']).strip()
@@ -760,7 +760,7 @@
# up to the branch point, as git cl upload will prefill the description
# with these log messages.
description = RunCommand(['git', 'log', '--pretty=format:%s%n%n%b',
- '%s...' % (upstream_branch)]).strip()
+ '%s...' % (upstream_branch)]).strip()
change = presubmit_support.GitChange(name, description, absroot, files,
issue, patchset)
@@ -770,7 +770,7 @@
files = [f.LocalPath() for f in change.AffectedFiles()]
watchers = watchlist.GetWatchersForPaths(files)
RunCommand(['git', 'config', '--replace-all',
- 'rietveld.extracc', ','.join(watchers)])
+ 'rietveld.extracc', ','.join(watchers)])
output = StringIO.StringIO()
should_continue = presubmit_support.DoPresubmitChecks(change, committing,