2017-03-28 28 views
1

背景无法打开,Vim使用Gcommit(杨门女将插件)时签署承诺

自从我决定签下我的所有提交,每当我试图运行:Gcommit写提交消息我会得到:

fugitive: error: failed to sign the data

我试了一下人们在[另一个问题](gpg failed to sign the data fatal: failed to write commit object [Git 2.10.0])和this other one上提出的建议,但显然这只是一个不同的错误。

通过issues on the Fugitive repository看,我注意到打开issue真的很接近我的经历,但没有答案。

  • GPG通过brew安装。
  • GPG代理已安装并正在运行。
  • 使用Vim的没有Neovim
  • 所有的符号链接的设置是否正确。

问题

如何Vim内部使用的提交和逃犯GPG签?

回答

2

几个月后忽略此功能后,我终于找到了解决这个问题的方法!

答案是在this link,荣誉给 “Blimmer”: git config --global gpg.program $(which gpg) echo "no-tty" >> ~/.gnupg/gpg.conf

它为我工作!