diff --git a/src/root/common.tt b/src/root/common.tt index 14dad68a..b0a997d5 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -347,9 +347,10 @@ BLOCK renderDiffUri; url = res.0; branch = res.1; IF bi1.type == "hg" || bi1.type == "git" %] - [% IF url.substr(0, 19) == "https://github.com/" %] + [% IF url.substr(0, 19) == "https://github.com/"; + github_url = url.replace('\.git$', '') %] - url + github_url _ "/compare/" _ bi1.revision _ "..."