Make commit logs not have an extra http://

Review URL: http://codereview.chromium.org/1810009

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@46015 0039d316-1c4b-4281-b951-d872f2087c98
parent a630bd7e
......@@ -892,9 +892,10 @@ def Commit(change_info, args):
commit_message = change_info.description.replace('\r\n', '\n')
if change_info.issue:
commit_message += ('\nReview URL: http://%s/%d' %
(GetCodeReviewSetting("CODE_REVIEW_SERVER"),
change_info.issue))
server = GetCodeReviewSetting("CODE_REVIEW_SERVER")
if not server.startswith("http://") and not server.startswith("https://"):
server = "http://" + server
commit_message += ('\nReview URL: %s/%d' % (server, change_info.issue))
handle, commit_filename = tempfile.mkstemp(text=True)
os.write(handle, commit_message)
......
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