| Index: git_cl/git_cl.py
|
| diff --git a/git_cl/git_cl.py b/git_cl/git_cl.py
|
| index 218c9f3dae502f739951780173f5b41f56964fea..665e2a0c5646d10c53801c80a8e5053b0f1b2983 100644
|
| --- a/git_cl/git_cl.py
|
| +++ b/git_cl/git_cl.py
|
| @@ -840,18 +840,10 @@ def CMDpresubmit(parser, args):
|
| # 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"]')
|
|
|