]> git.ipfire.org Git - thirdparty/git.git/commit
git-gui: override exec and open only on Windows
authorMark Levedahl <mlevedahl@gmail.com>
Fri, 11 Apr 2025 14:58:20 +0000 (10:58 -0400)
committerTaylor Blau <me@ttaylorr.com>
Fri, 23 May 2025 21:04:23 +0000 (17:04 -0400)
commita1ccd2512072cf52835050f4c97a4fba9f0ec8f9
tree30a638941098c1ed3ccc67e2abaf5fbebad7f65e
parent384b1409e8ba05bb908979a3f6aaa45bf93ac3c9
git-gui: override exec and open only on Windows

Since aae9560a355d (Work around Tcl's default `PATH` lookup,
2022-11-23), git-gui overrides exec and open on all platforms. But,
this was done in response to Tcl adding elements to $PATH on Windows,
while exec, open, and auto_execok honor $PATH as given on all other
platforms.

Let's do the override only on Windows, restoring others to using their
native exec and open. These honor the sanitized $PATH as that is written
out to env(PATH) in a previous commit. auto_execok is also safe on these
platforms, so can be used for _which.

Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
git-gui.sh