fix(#1540): watcher ignore directories with name exactly '.git'
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user