We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50ba619 commit ddf36d7Copy full SHA for ddf36d7
lua/lazy/manage/checker.lua
@@ -19,8 +19,8 @@ function M.fast_check()
19
if plugin._.installed then
20
plugin._.has_updates = nil
21
local info = Git.info(plugin.dir)
22
- local target = Git.get_target(plugin)
23
- if info and target and info.commit ~= target.commit then
+ local ok, target = pcall(Git.get_target, plugin)
+ if ok and info and target and info.commit ~= target.commit then
24
plugin._.has_updates = true
25
end
26
0 commit comments