当使用带有 git tag -u 的 gpg-agent 时,我立即收到以下错误:
gpg: cancelled by user
gpg: skipped "my@email.com": bad passphrase
gpg: signing failed: bad passphrase
error: gpg failed to sign the data
error: unable to sign the tag
Run Code Online (Sandbox Code Playgroud)
gpg-agent.conf:
pinentry-program /usr/bin/pinentry-curses
Run Code Online (Sandbox Code Playgroud)
当我首先解锁钥匙时(通过 a gpg -e -s test.txt),然后git tag -u命令会按预期拿起钥匙并签署标签。
这是在 ubuntu 13.10 上,使用 i3 wm。我怀疑 gnome-keyring 以某种方式阻碍了......某事,但在树莓派上,运行 archlinux-arm,它的工作方式相同,但问题略有不同 - 运行git tag -u命令后,它要求解锁密码,但没有出现密码或提示。一段时间后(大约 30 秒),它失败并显示以下内容:
gpg: problem with the agent: Line passed to IPC too long
gpg: skipped "my@email.com": Operation …Run Code Online (Sandbox Code Playgroud)