Commit c5ecbc1d by e0d

script bombs if comments include unicode

parent 91a0a3ff
...@@ -105,7 +105,7 @@ def generate_table(commit_range, include_merge=False): ...@@ -105,7 +105,7 @@ def generate_table(commit_range, include_merge=False):
for i, commit in enumerate(commits): for i, commit in enumerate(commits):
rows.append("| {author} | {summary} | {commit} | {jira} | {verified} |".format( rows.append("| {author} | {summary} | {commit} | {jira} | {verified} |".format(
author=email if i == 0 else "", author=email if i == 0 else "",
summary=commit.summary.replace("|", "\|"), summary=commit.summary.replace("|", "\|").encode('ascii',errors='ignore'),
commit=commit_link.format(sha=commit.hexsha), commit=commit_link.format(sha=commit.hexsha),
jira=", ".join(parse_ticket_references(commit.message)), jira=", ".join(parse_ticket_references(commit.message)),
verified="", verified="",
......
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