-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
gitext-rs/git2-ext
#27Labels
bugNot as expectedNot as expected
Description
Please complete the following tasks
- I have searched the discussions
- I have searched the existing issues
Description
Git-stack picks up the first GPG key to sign commits.
I have a set of GPG keys set up in the following order (gpg --list-secret-keys --keyid-format LONG):
[email protected](an email left from the previous job, not mentioned in any git configs or env vars)[email protected][email protected]
Whenever I run git sync, it always tries to sign commits with the first key from the list (i.e. [email protected]).
Version
0.10.10
Steps to reproduce
- Run
gpg --full-generate-keymultiple times to create a couple of GPG keys. To make testing easier, I recommend setting different passphrases for them. - Set git email to
[email protected]:git config --global user.email "[email protected]" - Force git to sign all commits:
git config --global commit.gpgSign true - Set env variables to
[email protected]:export [email protected]export [email protected]
- Run
git syncin any repo that will require rebasing and resigning commits
Actual Behaviour
Git-sync signs commits with [email protected] key
Expected Behaviour
Git-sync should pick up a key in the following priority:
GIT_COMMITTER_EMAIL~/.config/git/config~/.gitconfig
Debug Output
No response
Metadata
Metadata
Assignees
Labels
bugNot as expectedNot as expected