improve logging slightly
Review URL: http://codereview.chromium.org/6736018
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@79356 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl/git_cl.py b/git_cl/git_cl.py
index 218c9f3..665e2a0 100644
--- a/git_cl/git_cl.py
+++ b/git_cl/git_cl.py
@@ -840,18 +840,10 @@
# Default to diffing against the "upstream" branch.
base_branch = cl.GetUpstreamBranch()
- if options.upload:
- print '*** Presubmit checks for UPLOAD would report: ***'
- RunHook(committing=False, upstream_branch=base_branch,
- rietveld_server=cl.GetRietveldServer(), tbr=False,
- may_prompt=False)
- return 0
- else:
- print '*** Presubmit checks for DCOMMIT would report: ***'
- RunHook(committing=True, upstream_branch=base_branch,
- rietveld_server=cl.GetRietveldServer, tbr=False,
- may_prompt=False)
- return 0
+ RunHook(committing=not options.upload, upstream_branch=base_branch,
+ rietveld_server=cl.GetRietveldServer(), tbr=False,
+ may_prompt=False)
+ return 0
@usage('[args to "git diff"]')