diff --git a/lua/lazy/manage/checker.lua b/lua/lazy/manage/checker.lua index 7b9fe3c8..d3676d4c 100644 --- a/lua/lazy/manage/checker.lua +++ b/lua/lazy/manage/checker.lua @@ -19,8 +19,8 @@ function M.fast_check() if plugin._.installed then plugin._.has_updates = nil local info = Git.info(plugin.dir) - local target = Git.get_target(plugin) - 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 plugin._.has_updates = true end end