fix(git): handle port (#1912)

This fixes #1911
This commit is contained in:
Richard Gomez authored and GitHub committed 2025-07-14 19:00:48 -05:00
1 parent 2a7bcffd7c
commit 7b02c98eb4
1 file changed
+1 -1
+1 -1
View File
@@ -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".