You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was editing a file that I have encrypted with https://github.com/elasticdog/transcrypt. I staged the hunk that I edited using gitsigns.nvim, and then when I went to commit I got the following error from the transcrypt precommit hook:
Transcrypt managed file is not encrypted in the Git index: <edited file path redacted>
You probably staged this file using a tool that does not apply .gitattribute filters as required by Transcrypt.
Fix this by re-staging the file with a compatible tool or with Git on the command line:
git rm --cached -- <edited file path redacted>
git add <edited file path redacted>
Neovim version
v0.9.1
Operating system and version
macOS Ventura 13.4
Expected behavior
I should be able to stage hunks in files that use git attribute filters.
Actual behavior
Plain text is written directly to the git index? I'm not sure how exactly to debug further. Does gitsigns.nvim use the git cli directly?
Minimal config
forname, urlinpairs{
gitsigns='https://github.com/lewis6991/gitsigns.nvim',
-- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
} dolocalinstall_path=vim.fn.fnamemodify('gitsigns_issue/'..name, ':p')
ifvim.fn.isdirectory(install_path) ==0thenvim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
endvim.opt.runtimepath:append(install_path)
endrequire('gitsigns').setup{
debug_mode=true, -- You must add this to enable debug messages-- ADD GITSIGNS CONFIG THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
}
-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
Steps to reproduce
Set up a repository with git attribute filters (git lfs, transcrypt, etc)
Commit a file outside of nvim
Attempt to stage a hunk from gitsigns.nvim
Observe error from transcrypt precommit hook
Gitsigns debug messages
No response
The text was updated successfully, but these errors were encountered:
Description
I was editing a file that I have encrypted with https://github.com/elasticdog/transcrypt. I staged the hunk that I edited using gitsigns.nvim, and then when I went to commit I got the following error from the transcrypt precommit hook:
Neovim version
v0.9.1
Operating system and version
macOS Ventura 13.4
Expected behavior
I should be able to stage hunks in files that use git attribute filters.
Actual behavior
Plain text is written directly to the git index? I'm not sure how exactly to debug further. Does gitsigns.nvim use the git cli directly?
Minimal config
Steps to reproduce
Gitsigns debug messages
No response
The text was updated successfully, but these errors were encountered: