diff --git a/lua/lazy/manage/task/git.lua b/lua/lazy/manage/task/git.lua index 90ba2b1..4ac3058 100644 --- a/lua/lazy/manage/task/git.lua +++ b/lua/lazy/manage/task/git.lua @@ -12,7 +12,8 @@ M.log = { if opts.updated and not (plugin._.updated and plugin._.updated.from ~= plugin._.updated.to) then return true end - return not Util.file_exists(plugin.dir .. "/.git") + local stat = vim.loop.fs_stat(plugin.dir .. "/.git") + return stat and stat.type ~= "directory" end, ---@param opts {args?: string[], updated?:boolean, check?:boolean} run = function(self, opts)