Skip to content

Commit 3106f5f

Browse files
committed
windows: fix Repository>Explore Working Copy
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 Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 2bc31a0 commit 3106f5f

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
@@ -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)