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