diff --git a/git_cl.py b/git_cl.py index b3d8c9f304..31c80ae5cc 100755 --- a/git_cl.py +++ b/git_cl.py @@ -2784,9 +2784,9 @@ class _GerritChangelistImpl(_ChangelistCodereviewBase): title = re.sub(r'[^\w ]', '', title) if not automatic_title: print('WARNING: Patchset title may only contain alphanumeric chars ' - 'and spaces. Cleaned up title:\n%s' % title) - if not options.force: - ask_for_data('Press enter to continue, Ctrl+C to abort') + 'and spaces. You can edit it in the UI. ' + 'See https://crbug.com/663787.\n' + 'Cleaned up title: %s' % title) # Per doc, spaces must be converted to underscores, and Gerrit will do the # reverse on its side. refspec_opts.append('m=' + title.replace(' ', '_')) diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py index c622201f4a..dd3d300263 100755 --- a/tests/git_cl_test.py +++ b/tests/git_cl_test.py @@ -1393,7 +1393,8 @@ class TestGitCl(TestCase): title='Dont_put_bad_chars') self.assertIn( 'WARNING: Patchset title may only contain alphanumeric chars ' - 'and spaces. Cleaned up title:\nDont put bad chars\n', + 'and spaces. You can edit it in the UI. See https://crbug.com/663787.\n' + 'Cleaned up title: Dont put bad chars\n', git_cl.sys.stdout.getvalue()) def test_gerrit_reviewers_cmd_line(self):