upload.py: honor explicit empty title
R=pauljensen@chromium.org
BUG=
TEST=PatchSet 3 of this CL
Review-Url: https://codereview.chromium.org/2096123003
diff --git a/git_cl.py b/git_cl.py
index 7913e98..17b8ffb 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1898,7 +1898,7 @@
upload_args.extend(['--email', options.email])
if self.GetIssue():
- if options.title:
+ if options.title is not None:
upload_args.extend(['--title', options.title])
if options.message:
upload_args.extend(['--message', options.message])
@@ -1906,7 +1906,7 @@
print('This branch is associated with issue %s. '
'Adding patch to that issue.' % self.GetIssue())
else:
- if options.title:
+ if options.title is not None:
upload_args.extend(['--title', options.title])
message = (options.title or options.message or
CreateDescriptionFromLog(args))