We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06ffcf5 commit 9d12cdcCopy full SHA for 9d12cdc
lua/lazy/manage/task/git.lua
@@ -12,7 +12,8 @@ M.log = {
12
if opts.updated and not (plugin._.updated and plugin._.updated.from ~= plugin._.updated.to) then
13
return true
14
end
15
- return not Util.file_exists(plugin.dir .. "/.git")
+ local stat = vim.loop.fs_stat(plugin.dir .. "/.git")
16
+ return stat and stat.type ~= "directory"
17
end,
18
---@param opts {args?: string[], updated?:boolean, check?:boolean}
19
run = function(self, opts)
0 commit comments