Merge pull request #1564 from d-goldin/fix/github-diff-url

fix: Github diffs URL
This commit is contained in:
Janne Heß
2026-01-30 19:11:11 +00:00
committed by GitHub

View File

@@ -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$', '') %]
<a target="_blank" [% HTML.attributes(href =>
url
github_url
_ "/compare/"
_ bi1.revision
_ "..."