CONTEXT
Since I decided to sign all my commits, whenever I tried running :Gcommit and write a commit message I would get:
fugitive: error: failed to sign the data
I tried everything that people suggested on [this other question] (gpg failed to sign the data fatal: failed to write commit object [Git 2.10.0]) and also this other one but, apparently, it was just a different error.
Looking through the issues on the Fugitive repository, I noticed an open issue really close to what I was experiencing but without answer.
- GPG is installed through
brew. - GPG Agent is installed and running.
- Using Vim not Neovim
- All the symlinks are properly set.
QUESTION
How to sign commits inside Vim using Fugitive and GPG?