From: Junio C Hamano Date: Tue, 14 Feb 2012 22:35:23 GMT Subject: Re: [PATCH 2/2] git-svn, perl/Git.pm: extend and use Git->prompt method for querying users Message-ID: <7v4nut59hw.fsf@alter.siamese.dyndns.org> In-Reply-To: <20120214222055.GE24802@sigill.intra.peff.net> Jeff King writes: > export SSH_ASKPASS=whatever > > # this will try the terminal first, then SSH_ASKPASS, because it is > # ssh doing the asking > git push ssh://example.com/repo.git Sorry, you lost me here. Does "ssh example.com" consult the terminal first and then fall back to SSH_ASKPASS environment variable? I was under the impression that SSH_ASKPASS was to either give hands-free access to the keychain or give GUI experience so that people do not have to type from their terminals... > # this will try SSH_ASKPASS first, then the terminal, because git is > # doing the asking > git push https://example.com/repo.git > > So now I'm more convinced than ever that the order should be > GIT_ASKPASS, terminal, SSH_ASKPASS.