summaryrefslogtreecommitdiff
path: root/lib/remote.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/remote.tcl')
-rw-r--r--lib/remote.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/remote.tcl b/lib/remote.tcl
index fabec05fff..e235ca8876 100644
--- a/lib/remote.tcl
+++ b/lib/remote.tcl
@@ -32,7 +32,7 @@ proc all_tracking_branches {} {
}
if {$pat ne {}} {
- set fd [open "| git for-each-ref --format=%(refname) $cmd" r]
+ set fd [eval git_read for-each-ref --format=%(refname) $cmd]
while {[gets $fd n] > 0} {
foreach spec $pat {
set dst [string range [lindex $spec 0] 0 end-2]