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

This commit is contained in:
Tsakiris Tryfon 2022-12-21 15:39:08 +02:00 committed by GitHub
parent 57bea32e4f
commit a939243639
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -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)