From 43e34f0ba8a7a5bd57175a0d11a31a13f99edc90 Mon Sep 17 00:00:00 2001 From: "rogerta@chromium.org" Date: Mon, 25 Mar 2013 14:52:48 +0000 Subject: [PATCH] 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 --- git_cl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_cl.py b/git_cl.py index 79d0715f6..869154cdc 100755 --- a/git_cl.py +++ b/git_cl.py @@ -1155,7 +1155,7 @@ def RietveldUpload(options, args, cl): 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()