Skip to content

Commit 9382fd9

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
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 429110c + af75b05 commit 9382fd9

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
@@ -101,6 +101,9 @@ proc _which {what args} {
101101
102102
if {[is_Windows] && [lsearch -exact $args -script] >= 0} {
103103
set suffix {}
104+
} elseif {[string match *$_search_exe $what]} {
105+
# The search string already has the file extension
106+
set suffix {}
104107
} else {
105108
set suffix $_search_exe
106109
}

0 commit comments

Comments
 (0)