AGWA / git-crypt

Transparent file encryption in git
https://www.agwa.name/projects/git-crypt/
GNU General Public License v3.0
8.21k stars 476 forks source link

Unlock with GPG Keys does not prompt for Password #110

Open cmg-dev opened 7 years ago

cmg-dev commented 7 years ago

So, the problem is I try this:

$ git-crypt unlock                                                                                                                                        

You need a passphrase to unlock the secret key for
user: "Christoph Gnip <christoph.gnip@5minds.de>"
4096-bit RSA key, ID 1C2B032A, created 2015-06-19 (main key ID B327F778)

This message appears, but it does not stop at this point. So I'm not able to enter my password.

My System is a OSX machine with El Capitan.

What am I doing wrong? Has someone an idea?

rdica commented 7 years ago

I too have exactly this same issue. This has worked in the past, the only change is deleting the local repo and recloning.

jmalacho commented 7 years ago

My guess is this has nothing to do with git-crypt What is your gpg-agent situation? if it isn't running at all try something like this first (watch the backticks) eval `gpg-agent --daemon --use-standard-socket`

allcentury commented 7 years ago

I'm also seeing this issue on version 0.5.0

▶ git-crypt unlock

You need a passphrase to unlock the secret key for
user: "Anthony Ross <email>"
2048-bit RSA key, ID 2E335CFF, created 2017-02-03 (main key ID 946DF5B2)

Agent is running:

▶ gpg-agent
gpg-agent: gpg-agent running and available
dzavalkinolx commented 7 years ago

Any updates on this issue? I have Sierra and the same problem. Can't use git-crypt at all because of this bug.

allcentury commented 6 years ago

I was never able to get it working @dzavalkinolx

Deracination commented 6 years ago

Making $(tty) writable together with setting GPG_TTY worked for us in a centos vm on virtualbox:

sudo chmod o+rw $(tty)
export GPG_TTY=$(tty)
git-crypt unlock