Skip to content

Commit 922f4b8

Browse files
committed
git gui: set GIT_ASKPASS=git-gui--askpass if not set yet
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent eb24b16 commit 922f4b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git-gui/git-gui.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,9 @@ set argv0dir [file dirname [file normalize $::argv0]]
11301130
if {![info exists env(SSH_ASKPASS)]} {
11311131
set env(SSH_ASKPASS) [file join $argv0dir git-gui--askpass]
11321132
}
1133+
if {![info exists env(GIT_ASKPASS)]} {
1134+
set env(GIT_ASKPASS) [file join [git --exec-path] git-gui--askpass]
1135+
}
11331136
if {![info exists env(GIT_ASK_YESNO)]} {
11341137
set env(GIT_ASK_YESNO) [file join $argv0dir git-gui--askyesno]
11351138
}

0 commit comments

Comments
 (0)