Revert "fix(git): honor clone.defaultRemoteName. Fixes #602"

This reverts commit 5af93806aa.
This commit is contained in:
Sean Baildon 2023-03-05 11:02:10 +00:00
commit 790c407b9f

View file

@ -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