### Please describe the problem. git-annex assistant uses wrong key if multiple are available. If there is only one gpg available it works without issue. ### What steps will reproduce the problem? I tried to creating a new key through cli or assistant UI. I also tried to select preexisting key but it always appears to choose the initial key. Log below is creating a new key through assistant UI. ### What version of git-annex are you using? On what operating system? git-annex version: 5.20140709-gc75193e on linux amd64 & os x 10.9.4 ### Please provide any additional information below. [[!format sh """ # If you can, paste a complete transcript of the problem occurring here. # If the problem is with the git-annex assistant, paste in .git/annex/daemon.log [2014-07-12 23:22:57 PDT] main: starting assistant version 5.20140709-gc75193e [2014-07-12 23:22:57 PDT] Cronner: You should enable consistency checking to protect your data. (Recording state in git...) (scanning...) [2014-07-12 23:22:57 PDT] Watcher: Performing startup scan (started...) gpg: Signature made Wed Jul 9 19:09:28 2014 PDT using DSA key ID 89C809CB gpg: Can't check signature: public key not found (encryption setup) (hybrid cipher with gpg key A1FE7E9BECB5C7CA) gcrypt: Development version -- Repository format MAY CHANGE gcrypt: Repository not found: ssh://admin@nappy.local/share/backups/annex/ gcrypt: Development version -- Repository format MAY CHANGE gcrypt: Repository not found: ssh://admin@nappy.local/share/backups/annex/ gcrypt: Setting up new repository gcrypt: Remote ID is :id:smTV2DKvbvPIi7ftJLey gcrypt: Encrypting to: -R A1FE7E9BECB5C7CA gcrypt: Requesting manifest signature To gcrypt::ssh://admin@nappy.local/share/backups/annex/ * [new branch] git-annex -> git-annex ok [2014-07-12 23:23:42 PDT] main: Syncing with nappy.local__share_backups_annex gcrypt: Development version -- Repository format MAY CHANGE gcrypt: Decrypting manifest gpg: anonymous recipient; trying secret key 6DF1BC5D ... gpg: cannot open tty `/dev/tty': Device not configured gcrypt: Failed to decrypt manifest! gcrypt: Development version -- Repository format MAY CHANGE gcrypt: Decrypting manifest gpg: anonymous recipient; trying secret key 6DF1BC5D ... gpg: cannot open tty `/dev/tty': Device not configured gcrypt: Failed to decrypt manifest! # End of transcript or log. """]] [[!tag forwarded]] [[!meta title="using git-remote-gcrypt with multiple keys causes unncessary password prompts for keys that did not encrypt the repository"]] > [[fixed|done]]; upgrade git-remote-gcrypt and `git config gcrypt.publish-participants true` > and after the next push to the repo, it'll stop guessing at keys, and use > the right one. git-annex will do this by default for new gcrypt > repositories. --[[Joey]]