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_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pkg/vcs/vcs_test.go') diff --git a/pkg/vcs/vcs_test.go b/pkg/vcs/vcs_test.go index 01e1fe7f5..7abeba55b 100644 --- a/pkg/vcs/vcs_test.go +++ b/pkg/vcs/vcs_test.go @@ -183,6 +183,11 @@ func TestCommitLink(t *testing.T) { "06690d5c6466b604f674477b522a809673c17eff", "https://git.breakpoint.cc/cgit/fw/net-next.git/commit/?id=06690d5c6466b604f674477b522a809673c17eff", }, + { + "git@github.com:torvalds/linux.git", + "ccd1cdca5cd433c8a5dff78b69a79b31d9b77ee1", + "https://github.com/torvalds/linux/commit/ccd1cdca5cd433c8a5dff78b69a79b31d9b77ee1", + }, } for _, test := range tests { link := CommitLink(test.URL, test.Hash) @@ -222,6 +227,13 @@ func TestFileLink(t *testing.T) { 42, "https://android.googlesource.com/kernel/common/+/d0c3914ffbe4c00f0a131bae83f811d5606699bc/Makefile#42", }, + { + "git@github.com:torvalds/linux.git", + "ccd1cdca5cd433c8a5dff78b69a79b31d9b77ee1", + "Makefile", + 42, + "https://github.com/torvalds/linux/blob/ccd1cdca5cd433c8a5dff78b69a79b31d9b77ee1/Makefile#L42", + }, } for _, test := range tests { link := FileLink(test.URL, test.Hash, test.File, test.Line) -- cgit mrf-deployment