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
diff --git a/git_cl.py b/git_cl.py
index 26f04fd..5ff11fc 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -2394,7 +2394,9 @@
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)