diff options
author | Junio C Hamano <gitster@pobox.com> | 2025-06-15 21:52:28 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-06-15 21:54:23 -0700 |
commit | e1775c06465436437f2db0d3b6f59a61cfde0f2d (patch) | |
tree | ee5fb0758ceb486902d80df4edb6d63ee5f3e53e /git-gui/lib/tools.tcl | |
parent | 16bd9f20a403117f2e0d9bcda6c6e621d3763e77 (diff) | |
parent | aadf8ae518afd80b73d49eff8aff475161aa5157 (diff) |
Sync with 2.49.1
Diffstat (limited to 'git-gui/lib/tools.tcl')
-rw-r--r-- | git-gui/lib/tools.tcl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/git-gui/lib/tools.tcl b/git-gui/lib/tools.tcl index 413f1a1700..48fddfd814 100644 --- a/git-gui/lib/tools.tcl +++ b/git-gui/lib/tools.tcl @@ -110,14 +110,14 @@ proc tools_exec {fullname} { set cmdline $repo_config(guitool.$fullname.cmd) if {[is_config_true "guitool.$fullname.noconsole"]} { - tools_run_silent [list sh -c $cmdline] \ + tools_run_silent [list [shellpath] -c $cmdline] \ [list tools_complete $fullname {}] } else { regsub {/} $fullname { / } title set w [console::new \ [mc "Tool: %s" $title] \ [mc "Running: %s" $cmdline]] - console::exec $w [list sh -c $cmdline] \ + console::exec $w [list [shellpath] -c $cmdline] \ [list tools_complete $fullname $w] } @@ -130,8 +130,7 @@ proc tools_exec {fullname} { } proc tools_run_silent {cmd after} { - lappend cmd 2>@1 - set fd [_open_stdout_stderr $cmd] + set fd [safe_open_command $cmd [list 2>@1]] fconfigure $fd -blocking 0 -translation binary fileevent $fd readable [list tools_consume_input $fd $after] |