From 3d2dcb2d5ef99106c5ff412da88c6f59a9f8a693 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 1 Feb 2023 08:26:20 +0100 Subject: [PATCH] fix(log): properly check if plugin dir is a git repo before running git log --- lua/lazy/manage/task/git.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/manage/task/git.lua b/lua/lazy/manage/task/git.lua index f07fce0..377b3ef 100644 --- a/lua/lazy/manage/task/git.lua +++ b/lua/lazy/manage/task/git.lua @@ -15,7 +15,7 @@ M.log = { return true end local stat = vim.loop.fs_stat(plugin.dir .. "/.git") - return stat and stat.type ~= "directory" + return not (stat and stat.type == "directory") end, ---@param opts {args?: string[], updated?:boolean, check?:boolean} run = function(self, opts)