Make sure to use title if specified as default message when uploading an issue
to rietveld for the first time. This came up in a discussion with Nico about
changing -m for -t in the git cl upload command.
BUG=None
Review URL: https://chromiumcodereview.appspot.com/12965015
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@190399 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index 79d0715..869154c 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1155,7 +1155,7 @@
else:
if options.title:
upload_args.extend(['--title', options.title])
- message = options.message or CreateDescriptionFromLog(args)
+ message = options.title or options.message or CreateDescriptionFromLog(args)
change_desc = ChangeDescription(message, options.reviewers)
if not options.force:
change_desc.Prompt()