Description
Setup
- Which version of Git for Windows are you using? 32-bit or 64-bit? Include the
output ofgit version
as well.
Tried 2.9.0.windows.1, 2.9.2.windows.1, 2.9.3.windows.3 and 2.10.0.windows.1, all 64-bit. The problem spotted in 2.9.3.windows.3 and still present in 2.10.0.windows.1.
$ git --version
git version 2.9.3.windows.3
- Which version of Windows are you running? 32-bit or 64-bit?
Windows 7 Ultimate 64-bit
- What options did you set as part of the installation? Or did you choose the
defaults?
Defaults.
- Any other interesting things about your environment that might be related
to the issue you're seeing?
All worked before, the problem appeared after upgrading Git from 2.9.0.windows.1 to 2.9.3.windows.3. Anyway, gpg --list-key
works and provides the expected list of keys, user.signingkey
is set as before the upgrade – no change besides the Git upgrade happened. After downgrading back to 2.9.0.windows.1, the signing started to work again.
To verify that the upgrade was responsible for the problem, I used a clean system installation (Windows 7 Ultimate, 64-bit) in a virtual machine, equipped it with the same GPG keys, installed Git 2.9.3.windows.3 and tried the signing as described in details with the negative result. When downgraded the installation to 2.9.0.windows.1 or 2.9.2.windows.1, signing started to work. Upgrading to any newer version (2.9.3.windows.3 or 2.10.0.windows.1) broke the signing.
Details
- Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
Bash.
- What commands did you run to trigger this issue? If you can provide a
Minimal, Complete, and Verifiable example
this will help us understand the issue.
git init
git commit ---allow-empty -m "Test"
git tag -s test -m "Test"
- What did you expect to occur after running these commands?
Tagging should ask for the key passphrase and succeed after providing the correct password. The newly created tag should be signed then.
- What actually happened instead?
$ git tag -s test -m "Test"
error: gpg failed to sign the data
error: unable to sign the tag
The tag was not created at all, no more details about the error were provided.
- If the problem was occurring with a specific repository, can you provide the
URL to that repository to help us with testing?
A new repository was used.