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
Discarding an untracked file results in an error, even though g:magit_discard_untracked_do_delete is set to 1.
Thanks a bunch for looking at this and keep up your amazing work 👍
Steps to reproduce
Add let g:magit_discard_untracked_do_delete=1 to your .vimrc
touch untracked.txt
:Magit
Go to line of untracked.txt
DDD
This results in the following error:
Git error: error: pathspec 'bla.txt' did not match any file(s) known to git.^@
Git cmd: git checkout -- "bla.txt"
Error detected while processing function <SNR>144_nmapping_wrapper[2]..magit#stage_hunk[32]..magit#stage_block[32]..magit#git#git_checkout:
line 8:
E605: Exception not caught: checkout error
Error detected while processing function <SNR>144_nmapping_wrapper[2]..magit#stage_hunk[32]..magit#stage_block:
line 32:
E171: Missing :endif
Error detected while processing function <SNR>144_nmapping_wrapper:
line 2:
E171: Missing :endif
Environment
NVIM v0.2.2
git version 2.14.2
vimagit 85c25ffc60c8d144c7867c2e4d9f09cebb510cc0
macOS 10.11.6
terminal nvim (iTerm2)
The text was updated successfully, but these errors were encountered:
Short description of the problem
Discarding an untracked file results in an error, even though
g:magit_discard_untracked_do_delete
is set to1
.Thanks a bunch for looking at this and keep up your amazing work 👍
Steps to reproduce
let g:magit_discard_untracked_do_delete=1
to your.vimrc
touch untracked.txt
:Magit
untracked.txt
DDD
This results in the following error:
Environment
NVIM v0.2.2
git version 2.14.2
vimagit 85c25ffc60c8d144c7867c2e4d9f09cebb510cc0
The text was updated successfully, but these errors were encountered: