mirror of https://github.com/folke/lazy.nvim.git
fix(log): properly check if plugin dir is a git repo before running git log
This commit is contained in:
parent
527f83cae5
commit
3d2dcb2d5e
|
@ -15,7 +15,7 @@ M.log = {
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
local stat = vim.loop.fs_stat(plugin.dir .. "/.git")
|
local stat = vim.loop.fs_stat(plugin.dir .. "/.git")
|
||||||
return stat and stat.type ~= "directory"
|
return not (stat and stat.type == "directory")
|
||||||
end,
|
end,
|
||||||
---@param opts {args?: string[], updated?:boolean, check?:boolean}
|
---@param opts {args?: string[], updated?:boolean, check?:boolean}
|
||||||
run = function(self, opts)
|
run = function(self, opts)
|
||||||
|
|
Loading…
Reference in New Issue