From afdb051961ed4c19cdfa93478d55533f29c40260 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 9 Jun 2026 23:14:39 -0700 Subject: [PATCH] fix --- modules/lfs/endpoint.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lfs/endpoint.go b/modules/lfs/endpoint.go index 83363f3b3b..bf847c8434 100644 --- a/modules/lfs/endpoint.go +++ b/modules/lfs/endpoint.go @@ -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