1

出于安全目的,我们使用 GPG2 签署每个提交。通常这涉及一个完整的终端窗口“弹出窗口”,要求您在运行后输入密码git commit(终端屏幕仅被 GPG 消息替换)。但是,我们已经开始使用 python 的 pre-commit 工具在提交之前运行 linting,并且没有出现“弹出窗口”。这是我得到的错误:

$ git commit -m "fix linting issues"
autopep8 wrapper.........................................................Passed
Flake8...................................................................Passed
Check python ast.........................................................Passed
Check for added large files..............................................Passed
Check JSON...............................................................Passed
Check for merge conflicts................................................Passed
Check for case conflicts.................................................Passed
Check Yaml...............................................................Passed
Debug Statements (Python)................................................Passed
Detect Private Key.......................................................Passed
Fix double quoted strings................................................Passed
Fix End of Files.........................................................Passed
Forbid new submodules....................................................Passed
Trim Trailing Whitespace.................................................Passed
Pretty format JSON.......................................................Passed
pylint...................................................................Passed

error: gpg failed to sign the data
fatal: failed to write commit object
4

0 回答 0