mirror of https://github.com/folke/lazy.nvim.git
fix: checker should not error on non-existing dirs
This commit is contained in:
parent
50ba619d9e
commit
ddf36d7748
|
@ -19,8 +19,8 @@ function M.fast_check()
|
||||||
if plugin._.installed then
|
if plugin._.installed then
|
||||||
plugin._.has_updates = nil
|
plugin._.has_updates = nil
|
||||||
local info = Git.info(plugin.dir)
|
local info = Git.info(plugin.dir)
|
||||||
local target = Git.get_target(plugin)
|
local ok, target = pcall(Git.get_target, plugin)
|
||||||
if info and target and info.commit ~= target.commit then
|
if ok and info and target and info.commit ~= target.commit then
|
||||||
plugin._.has_updates = true
|
plugin._.has_updates = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue