Skip to content

Commit 9d12cdc

Browse files
committed
fix(git): don't run git log for submodules. Fixes #33
1 parent 06ffcf5 commit 9d12cdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/lazy/manage/task/git.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ M.log = {
1212
if opts.updated and not (plugin._.updated and plugin._.updated.from ~= plugin._.updated.to) then
1313
return true
1414
end
15-
return not Util.file_exists(plugin.dir .. "/.git")
15+
local stat = vim.loop.fs_stat(plugin.dir .. "/.git")
16+
return stat and stat.type ~= "directory"
1617
end,
1718
---@param opts {args?: string[], updated?:boolean, check?:boolean}
1819
run = function(self, opts)

0 commit comments

Comments
 (0)