mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix(git): honor clone.defaultRemoteName. Fixes #602
This commit is contained in:
parent
0f713b2958
commit
5af93806aa
1 changed files with 3 additions and 1 deletions
|
@ -196,7 +196,9 @@ end
|
|||
|
||||
---@param repo string
|
||||
function M.get_origin(repo)
|
||||
return M.get_config(repo)["remote.origin.url"]
|
||||
local config = M.get_config(repo)
|
||||
local remote = config["clone.defaultRemoteName"] or "origin"
|
||||
return config["remote." .. remote .. ".url"] or config["remote.origin.url"]
|
||||
end
|
||||
|
||||
---@param repo string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue