Bug 1309175
Summary: | git tag signing doesn't use gpg-agent | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Christopher Tubbs <ctubbsii> |
Component: | git | Assignee: | Chris Wright <chrisw> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 23 | CC: | chrisw, jbowes, nalimilan, pstodulk, tmz |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-02-17 09:55:59 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Christopher Tubbs
2016-02-17 04:53:39 UTC
One workaround is to do something like this in your .bashrc (tested and works): gpid="$(pgrep -U "$USER" gpg-agent | head -1 && return "${PIPESTATUS[0]}")" && export GPG_AGENT_INFO=$HOME/.gnupg/S.gpg-agent:$gpid:1 Another workaround might be for the user to specify the gpg.program in their ~/.gitconfig (haven't tested this) Just tested gpg config --global gpg.program gpg2 and gpg config --global gpg.program /usr/bin/gpg2 and both work. Yes, this workround is recommended. *** This bug has been marked as a duplicate of bug 568406 *** Confirmed this works. Though not the above command should be 'git config' instead of 'gpg config'. (In reply to Milan Bouchet-Valat from comment #4) > Confirmed this works. Though not the above command should be 'git config' > instead of 'gpg config'. Oh geez, you're right. That's a typo. A nice typo :-) I haven't seen it till now :-) |