We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1407565 commit 53be2c0Copy full SHA for 53be2c0
lua/lazy/manage/git.lua
@@ -196,9 +196,7 @@ end
196
197
---@param repo string
198
function M.get_origin(repo)
199
- local config = M.get_config(repo)
200
- local remote = config["clone.defaultRemoteName"] or "origin"
201
- return config["remote." .. remote .. ".url"] or config["remote.origin.url"]
+ return M.get_config(repo)["remote.origin.url"]
202
end
203
204
lua/lazy/manage/task/git.lua
@@ -75,6 +75,8 @@ M.clone = {
75
args[#args + 1] = "--recurse-submodules"
76
77
78
+ args[#args + 1] = "--origin=origin"
79
+
80
args[#args + 1] = "--progress"
81
82
if self.plugin.branch then
0 commit comments