diff --git a/lua/lazy/manage/git.lua b/lua/lazy/manage/git.lua index 116c5fe..2f37456 100644 --- a/lua/lazy/manage/git.lua +++ b/lua/lazy/manage/git.lua @@ -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