Chromium Code Reviews| Index: git_cl.py |
| diff --git a/git_cl.py b/git_cl.py |
| index e250c8e5e4dfcf884891629f46fbf7d217fd0cbd..9dc9339c24da683d22009b013b3ae9be483ad92c 100755 |
| --- a/git_cl.py |
| +++ b/git_cl.py |
| @@ -1254,9 +1254,13 @@ def SendUpstream(parser, args, cmd): |
| description = cl.GetDescription() |
| if not description: |
| - print 'No description set.' |
| - print 'Visit %s/edit to set it.' % (cl.GetIssueURL()) |
| - return 1 |
| + if options.bypass_hooks: |
| + # Something is very wrong; assume the user knows what they're doing. |
| + description = "<Committed without description and with --bypass-hooks>" |
|
M-A Ruel
2012/08/29 20:27:10
What about?
if not cl.GetIssue() and options.bypas
Elliot Glaysher
2012/08/29 20:39:16
Done.
|
| + else: |
| + print 'No description set.' |
| + print 'Visit %s/edit to set it.' % (cl.GetIssueURL()) |
| + return 1 |
| if cl.GetIssue(): |
| description += "\n\nReview URL: %s" % cl.GetIssueURL() |