Skip to content

Commit

Permalink
fix(attach): allow attaching inside .git/
Browse files Browse the repository at this point in the history
Fixes #923
  • Loading branch information
lewis6991 committed May 1, 2024
1 parent f65d1d8 commit 9cafac3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lua/gitsigns/attach.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9cafac3

Please sign in to comment.