aboutsummaryrefslogtreecommitdiffstats
path: root/git-gui/lib/console.tcl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-07-07 15:08:10 -0700
committerJunio C Hamano <gitster@pobox.com>2025-07-07 15:08:10 -0700
commit038143def708a65455172a87432aee27da2d80c4 (patch)
treea6271d7824fe36b364f6f19f2437de785820aab8 /git-gui/lib/console.tcl
parentThe seventh batch (diff)
parentGit 2.50.1 (diff)
downloadgit-038143def708a65455172a87432aee27da2d80c4.tar.gz
git-038143def708a65455172a87432aee27da2d80c4.zip
Sync with Git 2.50.1
Diffstat (limited to 'git-gui/lib/console.tcl')
-rw-r--r--git-gui/lib/console.tcl5
1 files changed, 2 insertions, 3 deletions
diff --git a/git-gui/lib/console.tcl b/git-gui/lib/console.tcl
index fafafb81f1..a017cfeadd 100644
--- a/git-gui/lib/console.tcl
+++ b/git-gui/lib/console.tcl
@@ -92,10 +92,9 @@ method _init {} {
method exec {cmd {after {}}} {
if {[lindex $cmd 0] eq {git}} {
- set fd_f [eval git_read --stderr [lrange $cmd 1 end]]
+ set fd_f [git_read [lrange $cmd 1 end] [list 2>@1]]
} else {
- lappend cmd 2>@1
- set fd_f [_open_stdout_stderr $cmd]
+ set fd_f [safe_open_command $cmd [list 2>@1]]
}
fconfigure $fd_f -blocking 0 -translation binary -encoding [encoding system]
fileevent $fd_f readable [cb _read $fd_f $after]