Skip to content

Commit

Permalink
strip .git from submodule diff urls
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Nov 15, 2024
1 parent f7c5f6f commit d511df9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Plogon/BuildProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1296,8 +1296,12 @@ private BuildResult.ReviewedNeed GetNeedStatus(string key, string version, State
var parts = uri.AbsolutePath.Split('/');
if (parts.Length >= 3)
{
var diffHost = uri.Host;
if (diffHost.EndsWith(".git"))
diffHost = diffHost[..^4];

diffUrl =
$"https://{uri.Host}/{parts[1]}/{parts[2]}/compare/{lastReview.Version}...{version}";
$"https://{diffHost}/{parts[1]}/{parts[2]}/compare/{lastReview.Version}...{version}";
}
}
}
Expand Down

0 comments on commit d511df9

Please sign in to comment.