fix(log): properly check if plugin dir is a git repo before running git log

This commit is contained in:
Folke Lemaitre 2023-02-01 08:26:20 +01:00
parent 527f83cae5
commit 3d2dcb2d5e
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

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