Skip to content

Commit 9e6cd4b

Browse files
authored
Git GUI: fix Repository>Explore Working Copy (#4357)
This is a companion PR of prati0100/git-gui#95 Since Git v2.39.1, we are a bit more stringent in searching the PATH. In particular, we specifically require the `.exe` suffix. However, the `Repository>Explore Working Copy` command asks for `explorer.exe` to be found on the `PATH`, which _already_ has that suffix. Let's unstartle the PATH-finding logic about this scenario. This fixes #4356
2 parents 1d90ca2 + 2540183 commit 9e6cd4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git-gui/git-gui.sh

+3
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ proc _which {what args} {
108108
109109
if {[is_Windows] && [lsearch -exact $args -script] >= 0} {
110110
set suffix {}
111+
} elseif {[string match *$_search_exe $what]} {
112+
# The search string already has the file extension
113+
set suffix {}
111114
} else {
112115
set suffix $_search_exe
113116
}

0 commit comments

Comments
 (0)