Skip to content

Commit

Permalink
fix(checker): allow git checks only for non-pinned plugins (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsakirist committed Dec 21, 2022
1 parent 57bea32 commit a939243
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/manage/checker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ end

function M.fast_check()
for _, plugin in pairs(Config.plugins) do
if plugin._.installed then
if not plugin.pin and plugin._.installed then
plugin._.has_updates = nil
local info = Git.info(plugin.dir)
local ok, target = pcall(Git.get_target, plugin)
Expand Down
3 changes: 3 additions & 0 deletions lua/lazy/manage/task/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a939243

Please sign in to comment.