Re: [PATCH 2/4] git gui: set GIT_ASKPASS=git-gui--askpass if not set yet
- From
Pratyush Yadav <me@yadavpratyush.com>
- Date
- Sep 29, 2019, 17:15 UTC
- Message-ID
- <20190929171537.3t5f5glq2jamkpa5@yadavpratyush.com>
- In-Reply-To
- <cb9f8c8158c5a7b55ed746234624ae69a575f608.1569511793.git.gitgitgadget@gmail.com>
What is the difference between SSH_ASKPASS and GIT_ASKPASS? On my first read, I assumed SSH_ASKPASS is replaced by GIT_ASKPASS, but I might be wrong.
On 26/09/19 08:29AM, Johannes Schindelin via GitGitGadget wrote:
Show 21 quoted lines
> From: Johannes Schindelin <johannes.schindelin@gmx.de>
>
> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> ---
> git-gui.sh | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/git-gui.sh b/git-gui.sh
> index 76d8139b8d..66f046a0c7 100755
> --- a/git-gui.sh
> +++ b/git-gui.sh
> @@ -1248,6 +1248,9 @@ set have_tk85 [expr {[package vcompare $tk_version "8.5"] >= 0}]
> if {![info exists env(SSH_ASKPASS)]} {
> set env(SSH_ASKPASS) [gitexec git-gui--askpass]
> }
> +if {![info exists env(GIT_ASKPASS)]} {
> + set env(GIT_ASKPASS) [gitexec git-gui--askpass]
> +}
> if {![info exists env(GIT_ASK_YESNO)]} {
> set env(GIT_ASK_YESNO) [gitexec git-gui--askyesno]
> }-- Regards, Pratyush Yadav