From a3b5ade1a4211009e5cc092cccf94458bc9f2b97 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 29 Dec 2025 12:34:01 +0100 Subject: pkg/vcs: support git@github.com repos --- pkg/vcs/vcs.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/vcs/vcs.go') diff --git a/pkg/vcs/vcs.go b/pkg/vcs/vcs.go index b14fbdcbf..b7197a7d6 100644 --- a/pkg/vcs/vcs.go +++ b/pkg/vcs/vcs.go @@ -387,6 +387,9 @@ func link(url, hash, file string, line, typ int) string { if url == "" || hash == "" { return "" } + if colon := strings.IndexByte(url, ':'); colon != -1 && strings.HasPrefix(url, "git@") { + url = "https://" + url[4:colon] + "/" + url[colon+1:] + } switch url { case "https://fuchsia.googlesource.com": // We collect hashes from the fuchsia repo. -- cgit mrf-deployment