Closed smemsh closed 7 years ago
I agree; this should be changed. I like your suggestions. As a workaround, I've created a link: ln -s /usr/local/bin/gpg2 /usr/local/bin/gpg
.
I'd prefer it being configurable at build-time, like
MAKE GPG=/path/to/gpgX
(defaulting to gpg2, gpg1 is over, really :-))
Just a data point: the git-remote-gcrypt project uses the gpg.program
git config key for this.
Thanks to the PR by @dcreemer, git-crypt now honors the gpg.program
Git config option. This is the standard option used by Git to configure the gpg command.
Btw, next gpg will be named gpg, not gpg2 :)
On my system, the
gpg
binary is gpg1, but I want to usegpg2
(among other reasons, only gpg2 supports elliptic curves).I looked at gpg.cpp and it looks like you are hardcoding
gpg
invocations with:I am requesting to have available an environment or command-line override for the binary path, such as one of the following: