Re: I lost my commit signature
- From
ZhenTian <loooseleaves@gmail.com>
- Date
- Jun 14, 2016, 09:56 UTC
- Message-ID
- <CAGrdoOoadz_1OV4eB1+yjCiDpKRe1T1CtCTu7cq1g+9CEc2DxQ@mail.gmail.com>
- In-Reply-To
- <20160614094121.GA13971@sigill.intra.peff.net>
Thanks Peff, I have setup to gpg.program, if any progress I will reply.
Over. Sincerely, 田震
On Tue, Jun 14, 2016 at 5:41 PM, Jeff King <peff@peff.net> wrote:
Show 25 quoted lines
> On Tue, Jun 14, 2016 at 04:39:38PM +0800, ZhenTian wrote: > >> I want to set gpg -v to pgp.program, but if I set it, it can't call gpg: >> ``` >> error: cannot run gpg -v: No such file or directory >> error: could not run gpg. >> fatal: failed to write commit object >> ``` >> >> I have tried set gpg.program value to `gpg|/tmp/log`, `/usr/bin/gpg >> -v`, `gpg -v`, `"/usr/bin/gpg -v"` >> >> only after I set to `gpg` or `/usr/bin/gpg` without any argument, it will work. > > Ah, right. Most of the time we run such programs as shell commands, but > it looks like we do not. So you'd have to do something like: > > cat >/tmp/fake-gpg <<-\EOF > #!/bin/sh > gpg -v "$@" > EOF > chmod +x /tmp/fake-gpg > git config gpg.program /tmp/fake-gpg > > -Peff