From 7b02c98eb43553c6543584f1cc13396362164f76 Mon Sep 17 00:00:00 2001 From: Richard Gomez <32133502+rgmz@users.noreply.github.com> Date: Mon, 14 Jul 2025 20:00:48 -0400 Subject: [PATCH] fix(git): handle port (#1912) This fixes #1911 --- sources/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/git.go b/sources/git.go index 73f713f2..790eaafa 100644 --- a/sources/git.go +++ b/sources/git.go @@ -440,7 +440,7 @@ End: } } -var sshUrlpat = regexp.MustCompile(`^git@([a-zA-Z0-9.-]+):([\w/.-]+?)(?:\.git)?$`) +var sshUrlpat = regexp.MustCompile(`^git@([a-zA-Z0-9.-]+):(?:\d{1,5}/)?([\w/.-]+?)(?:\.git)?$`) func getRemoteUrl(source string) (*url.URL, error) { // This will return the first remote — typically, "origin".