diff options
Diffstat (limited to 'wt-status.c')
-rw-r--r-- | wt-status.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/wt-status.c b/wt-status.c index 05b69dc4d3..ef232a74be 100644 --- a/wt-status.c +++ b/wt-status.c @@ -744,11 +744,8 @@ static void wt_status_print_submodule_summary(struct wt_status *s, int uncommitt sm_summary.git_cmd = 1; sm_summary.no_stdin = 1; - sm_summary.out = -1; - run_command(&sm_summary); - - strbuf_read(&cmd_stdout, sm_summary.out, 1024); + capture_command(&sm_summary, &cmd_stdout, 1024); /* prepend header, only if there's an actual output */ if (cmd_stdout.len) { |