jonas/tig

Error when executing `:!git commit --amend`

MartyLake opened this issue · 3 comments

In tig, executing :!git commit --amend tries to call EDITOR, in my case vim, but fails, displaying

vim input is not a from terminal
vim output is not from terminal

after that, tig is unresponsive and I have to close this terminal and open a new one.

Is there a way to call git commit --amend from tig that does not suffer from this issue ?

Thanks for the bind trick!

As per man tigmanual you want to do :exec !git commit --amend to leave the tty to the subprocess.