Go to file
Mark Levedahl 16c03089e6 gitk: limit PATH search to bare executable names
The path search overrides used by gitk on Windows are applied to any
executable whose name is not 'absolute', meaning that
	[exec foo/bar ...]
will search each element of $PATH to find one with subdirectory foo
containing bar. But, per POSIX, and Tcl implementation on all platforms,
foo/bar is taken as $(pwd)/foo/bar, and is not searched on $PATH.

Fix this descrepency using the same approach applied to git-gui in
commit 3f71c97e. The key is that the executable name must have no path
component, indicated by [file split $exename] having array length 1.

Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
2025-04-01 18:13:04 +02:00
po gitk: introduce support for the Meson build system 2025-02-20 08:52:15 +01:00
.gitignore gitk: Ignore gitk-wish buildproduct 2013-01-30 21:12:16 +11:00
Makefile gitk: extract script to build executable 2025-02-20 08:52:07 +01:00
generate-tcl.sh gitk: extract script to build executable 2025-02-20 08:52:07 +01:00
gitk gitk: limit PATH search to bare executable names 2025-04-01 18:13:04 +02:00
meson.build gitk: introduce support for the Meson build system 2025-02-20 08:52:15 +01:00