This commit is contained in:
Lunny Xiao committed 2026-06-09 23:14:39 -07:00
1 parent e0e5d6e5eb
commit afdb051961
1 file changed
+2 -2
+2 -2
View File
@@ -67,8 +67,8 @@ func endpointFromURL(rawurl string) *url.URL {
u.Scheme = "https" u.Scheme = "https"
return u return u
case "ssh", "git+ssh": case "ssh", "git+ssh":
u.Scheme = "https" u.Scheme = "https" // is it possible http?
u.Host = util.IfZero(u.Hostname(), u.Host) u.Host = u.Hostname() // remove ssh port if any
u.Path = "/" + strings.TrimPrefix(u.Path, "/") u.Path = "/" + strings.TrimPrefix(u.Path, "/")
u.User = nil u.User = nil
return u return u