]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-gui: prefer shell at "/bin/sh" with Meson
authorPatrick Steinhardt <ps@pks.im>
Tue, 10 Feb 2026 12:45:33 +0000 (13:45 +0100)
committerPatrick Steinhardt <ps@pks.im>
Tue, 17 Feb 2026 05:58:11 +0000 (06:58 +0100)
Meson detects the path of the target shell via `find_program("sh")`,
which essentially does a lookup via `PATH`. We know that almost all
systems have "/bin/sh" available though, which makes it the superior
choice as a default value.

Adapt `find_program()` to prefer "/bin/sh" over any other "sh"
executable.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
meson.build

index 4a604657531e34d7bd82bc52f1a14508232f3ad2..a2156f01e3e89e21f16b88ba5644dfd19dd2e4d0 100644 (file)
@@ -4,7 +4,7 @@ project('git-gui',
 
 fs = import('fs')
 
-shell = find_program('sh')
+shell = find_program('/bin/sh', 'sh')
 tclsh = find_program('tclsh')
 wish = find_program('wish')