fix(#1540): watcher ignore directories with name exactly '.git'

This commit is contained in:
Alexander Courtis
2022-08-23 10:29:45 +10:00
parent e3353c4cb4
commit 259efeee62

View File

@@ -19,7 +19,7 @@ local function update_parent_statuses(node, project, root)
end
local function is_git(path)
return path:match "%.git$" ~= nil or path:match(utils.path_add_trailing ".git") ~= nil
return vim.fn.fnamemodify(path, ":t") == ".git"
end
local IGNORED_PATHS = {