mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 02:21:17 +02:00
fix
This commit is contained in:
1 file changed
+2
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user