Skip to content

Commit ddf36d7

Browse files
committed
fix: checker should not error on non-existing dirs
1 parent 50ba619 commit ddf36d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/lazy/manage/checker.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ function M.fast_check()
1919
if plugin._.installed then
2020
plugin._.has_updates = nil
2121
local info = Git.info(plugin.dir)
22-
local target = Git.get_target(plugin)
23-
if info and target and info.commit ~= target.commit then
22+
local ok, target = pcall(Git.get_target, plugin)
23+
if ok and info and target and info.commit ~= target.commit then
2424
plugin._.has_updates = true
2525
end
2626
end

0 commit comments

Comments
 (0)