emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: git push via VC failure


From: Noam Postavsky
Subject: Re: git push via VC failure
Date: Mon, 30 Jul 2018 13:09:41 -0400

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?

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.

Or if you expect to get a password prompt every time, then I think
it's just that Emacs is not using a pty when running 'git push', which
causes git (or ssh?) to use ssh-askpass instead.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]