diff --git a/lua/gitsigns/attach.lua b/lua/gitsigns/attach.lua index 4a4079072..ce543e07e 100644 --- a/lua/gitsigns/attach.lua +++ b/lua/gitsigns/attach.lua @@ -293,11 +293,6 @@ local attach_throttled = throttle_by_id(function(cbuf, ctx, aucmd) gitdir = git_obj.repo.gitdir, }) - if vim.startswith(file, git_obj.repo.gitdir .. util.path_sep) then - dprint('In non-standard git dir') - return - end - if not passed_ctx and (not util.path_exists(file) or uv.fs_stat(file).type == 'directory') then dprint('Not a file') return