fix(checker): allow git checks only for non-pinned plugins

This commit is contained in:
Tsakiris Tryfon 2022-12-21 12:42:26 +02:00
commit 70e2393f89
2 changed files with 4 additions and 1 deletions

View file

@ -8,6 +8,9 @@ local M = {}
M.log = {
---@param opts {updated?:boolean, check?: boolean}
skip = function(plugin, opts)
if opts.check and plugin.pin then
return true
end
if opts.updated and not (plugin._.updated and plugin._.updated.from ~= plugin._.updated.to) then
return true
end