Re: [msysGit] git-svn.perl should check GIT_ASKPASS environment
- From
Frank Li <lznuaa@gmail.com>
- Date
- Feb 11, 2011, 09:37 UTC
- Message-ID
- <AANLkTik9mFNsqFQn5SEZkYd_uxDeoY-9nqgV_PJ+nNsi@mail.gmail.com>
- In-Reply-To
- <AANLkTinkv0dNxNxehud0Byuu9tpqxp1kBMJ1OyEcfVQ_@mail.gmail.com>
Show 8 quoted lines
> But I don't think it should check GIT_ASKPASS, GIT_ASKPASS isn't a > general-purpose dialog-box hook, it's a hook for getting *passwords*. > To allow git-svn to query the user of a non-terminal user, another > mechanism would probably be created. But in any case, I we should do > something other than just waiting if we're not connected to a TTY. I > don't really know Perl that well, but perhaps something like this does > the trick? >
SSH_ASKPASS is used to accept "Enter your OpenSSH passphrase". refer to git-gui/git-gui--askpass
GIT_ASKPASS should be similar with SSH_ASKPASS. git-svn can use GIT_ASKPASS hook to launch third part application to accept certification.