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

Unified Diff: presubmit_canned_checks.py

Issue 7493050: Do not interfere with git cl patch <issue> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Remove confusing command Created 9 years, 5 months 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: presubmit_canned_checks.py
diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py
index a69bacee4ebd630a8377bfa1983b201e9be3e75b..137c376415b79c54b8b867b8e943b06b9379b800 100644
--- a/presubmit_canned_checks.py
+++ b/presubmit_canned_checks.py
@@ -66,8 +66,7 @@ def CheckChangeHasDescription(input_api, output_api):
def CheckChangeWasUploaded(input_api, output_api):
"""Checks that the issue was uploaded before committing."""
- if (input_api.is_committing and
- (not input_api.change.issue or not input_api.change.patchset)):
+ if input_api.is_committing and not input_api.change.issue:
return [output_api.PresubmitError(
'Issue wasn\'t uploaded. Please upload first.')]
return []
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698