mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-03 15:31:51 +02:00
fix
This commit is contained in:
@@ -67,8 +67,8 @@ func endpointFromURL(rawurl string) *url.URL {
|
||||
u.Scheme = "https"
|
||||
return u
|
||||
case "ssh", "git+ssh":
|
||||
u.Scheme = "https"
|
||||
u.Host = util.IfZero(u.Hostname(), u.Host)
|
||||
u.Scheme = "https" // is it possible http?
|
||||
u.Host = u.Hostname() // remove ssh port if any
|
||||
u.Path = "/" + strings.TrimPrefix(u.Path, "/")
|
||||
u.User = nil
|
||||
return u
|
||||
|
||||
Reference in New Issue
Block a user