Commit 4c61dccd authored by smut@google.com's avatar smut@google.com

Add period below review URL when adding review URL footer to committed CLs

Because some interfaces aren't linkifying the URL when the commit message ends with it.

BUG=480922
TESTED=tests/git_cl_test.py; presubmit ok

Review URL: https://codereview.chromium.org/1165293002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@295566 0039d316-1c4b-4281-b951-d872f2087c98
parent 9d0644d7
......@@ -2394,7 +2394,9 @@ def SendUpstream(parser, args, cmd):
commit_desc = ChangeDescription(change_desc.description)
if cl.GetIssue():
commit_desc.append_footer('Review URL: %s' % cl.GetIssueURL())
# Xcode won't linkify this URL unless there is a non-whitespace character
# after it. Add a period on a new line to circumvent this.
commit_desc.append_footer('Review URL: %s.' % cl.GetIssueURL())
if options.contributor:
commit_desc.append_footer('Patch from %s.' % options.contributor)
......
......@@ -359,7 +359,7 @@ class TestGitCl(TestCase):
((['git', 'reset', '--soft', 'fake_ancestor_sha'],), ''),
((['git', 'commit', '-m',
'Issue: 12345\n\nR=john@chromium.org\n\n'
'Review URL: https://codereview.example.com/12345'],),
'Review URL: https://codereview.example.com/12345.'],),
''),
((['git', 'config', 'rietveld.force-https-commit-url'],), ''),
((['git',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment