GnuPG 2の出力は、特にGnuPG 2.1の場合と若干異なる場合があることに注意してください。通常、これは問題になりませんが、まれに奇妙なことが起こる場合があります。
gpgアプリケーションごとに使用されるバイナリを個別に構成します。たとえば、gitにはgpg.programオプションがあります。からman gpg-config:
gpg.program
Use this custom program instead of "gpg" found on $PATH when making or verifying
a PGP signature. The program must support the same command-line interface as
GPG, namely, to verify a detached signature, "gpg --verify $file - <$signature"
is run, and the program is expected to signal a good signature by exiting with
code 0, and to generate an ascii-armored detached signature, the standard input
of "gpg -bsau $key" is fed with the contents to be signed, and the program is
expected to send the result to its standard output.
を使用git config --global gpg.program gpg2してユーザーのGnuPG 2を選択するか、またはに置き換え--globalて--systemすべてのユーザーの設定を変更します。