aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs/vcs.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2025-12-29 12:34:01 +0100
committerDmitry Vyukov <dvyukov@google.com>2025-12-29 13:41:13 +0000
commita3b5ade1a4211009e5cc092cccf94458bc9f2b97 (patch)
tree5a264f788d245e0c96905afcbf5eed584aa16315 /pkg/vcs/vcs.go
parent1b9f64757a7358e28cc89893899f4016d8d7b223 (diff)
pkg/vcs: support git@github.com repos
Diffstat (limited to 'pkg/vcs/vcs.go')
-rw-r--r--pkg/vcs/vcs.go3
1 files changed, 3 insertions, 0 deletions
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.