[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: git push via VC failure
From: |
Stephen Berman |
Subject: |
Re: git push via VC failure |
Date: |
Mon, 30 Jul 2018 19:20:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
On Mon, 30 Jul 2018 13:09:41 -0400 Noam Postavsky <address@hidden> wrote:
> On 30 July 2018 at 08:52, Stephen Berman <address@hidden> wrote:
>
>> I've gotten this on two different GNU/Linux systems, one does not have
>> ssh-askpass installed, the other does but it is in /usr/libexec/openssh;
>> so does VC really require ssh-askpass directly in /usr/libexec? If so,
>> I guess I could symlink it there, but this seems suboptimal. Again, in
>> both systems 'git push' from the shell succeeded, so git itself seems to
>> be configured correctly and ssh-askpass doesn't seem to be required. Or
>> is there some other reason for the failure in VC?
>
> Are you using ssh-agent, and are SSH_AGENT_PID and SSH_AUTH_SOCK set
> in your shell but not in Emacs?
Ah, that must be it. Thanks for calling it to my attention.
> I have written the ssh-agency package which tries to find the correct
> values for those environment variables automatically. Originally it
> was written for magit on w32 systems, but it turns out to be useful on
> GNU systems as well. And it should be usable for vc-git, it's just a a
> matter of arranging to have `ssh-agency-ensure' called before 'git
> push' is run.
Thanks for the pointer, I'll give it a try.
Steve Berman