aboutsummaryrefslogtreecommitdiffstats
path: root/gitweb/static/js/javascript-detection.js
diff options
context:
space:
mode:
authorMark Levedahl <mlevedahl@gmail.com>2025-04-01 11:45:06 -0400
committerTaylor Blau <me@ttaylorr.com>2025-05-23 17:04:23 -0400
commit10637fc327fe9d3afd19a11ed64bd9e1c7a9c6b5 (patch)
tree606ae57864b2d6b66b0f5c40ad83c2296545cf9e /gitweb/static/js/javascript-detection.js
parentgit-gui: use [is_Windows], not bad _shellpath (diff)
downloadgit-10637fc327fe9d3afd19a11ed64bd9e1c7a9c6b5.tar.gz
git-10637fc327fe9d3afd19a11ed64bd9e1c7a9c6b5.zip
git-gui: make _shellpath usable on startup
Since commit d5257fb3c1de (git-gui: handle textconv filter on Windows and in development, 2010-08-07), git-gui will search for a usable shell if _shellpath is not configured, and on Windows may resort to using auto_execok to find 'sh'. While this was intended for development use, checks are insufficient to assure a proper configuration when deployed where _shellpath is always set, but might not give a usable shell. Let's make this more robust by only searching if _shellpath was not defined, and then using only our restricted search functions. Furthermore, we should convert to a Windows path on Windows. Always check for a valid shell on startup, meaning an absolute path to an executable, aborting if these conditions are not met. Signed-off-by: Mark Levedahl <mlevedahl@gmail.com> Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'gitweb/static/js/javascript-detection.js')
0 files changed, 0 insertions, 0 deletions