mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
update
This commit is contained in:
parent
ed8e73b4aa
commit
e0f90f44a7
1 changed files with 5 additions and 1 deletions
|
|
@ -180,6 +180,10 @@ function M.get_url(remote)
|
||||||
ret = ret:gsub(pattern[1], pattern[2])
|
ret = ret:gsub(pattern[1], pattern[2])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if ret:find("https://") == 1 then
|
||||||
|
return ret
|
||||||
|
end
|
||||||
|
|
||||||
--- @param url string
|
--- @param url string
|
||||||
local function getRemoteURLFromSSH(url)
|
local function getRemoteURLFromSSH(url)
|
||||||
local transformedUrl = ""
|
local transformedUrl = ""
|
||||||
|
|
@ -227,7 +231,7 @@ function M.get_url(remote)
|
||||||
return transformedUrl
|
return transformedUrl
|
||||||
end
|
end
|
||||||
|
|
||||||
return ret:find("https://") == 1 and ret or getRemoteURLFromSSH(ret) or ("https://%s"):format(ret)
|
return getRemoteURLFromSSH(ret) or ("https://%s"):format(ret)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.browse()
|
function M.browse()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue