Skip to content

Commit

Permalink
fix(git): don't run git log for submodules. Fixes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 20, 2022
1 parent 06ffcf5 commit 9d12cdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/lazy/manage/task/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ M.log = {
if opts.updated and not (plugin._.updated and plugin._.updated.from ~= plugin._.updated.to) then
return true
end
return not Util.file_exists(plugin.dir .. "/.git")
local stat = vim.loop.fs_stat(plugin.dir .. "/.git")
return stat and stat.type ~= "directory"
end,
---@param opts {args?: string[], updated?:boolean, check?:boolean}
run = function(self, opts)
Expand Down

0 comments on commit 9d12cdc

Please sign in to comment.