Skip to content

Commit

Permalink
fix(log): properly check if plugin dir is a git repo before running g…
Browse files Browse the repository at this point in the history
…it log
  • Loading branch information
folke committed Feb 1, 2023
1 parent 527f83c commit 3d2dcb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/manage/task/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3d2dcb2

Please sign in to comment.