Skip to content

Commit fa582aa

Browse files
committed
cu log/diff: include stderr
Signed-off-by: Andrea Luzzardi <andrea@luzzardi.com>
1 parent ae907f8 commit fa582aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

repository/repository.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ func (r *Repository) Log(ctx context.Context, id string, patch bool, w io.Writer
383383
cmd.Dir = r.userRepoPath
384384
cmd.Args = logArgs
385385
cmd.Stdout = w
386+
cmd.Stderr = w
386387

387388
return cmd.Run()
388389
}
@@ -409,6 +410,7 @@ func (r *Repository) Diff(ctx context.Context, id string, w io.Writer) error {
409410
cmd.Dir = r.userRepoPath
410411
cmd.Args = diffArgs
411412
cmd.Stdout = w
413+
cmd.Stderr = w
412414

413415
return cmd.Run()
414416
}

0 commit comments

Comments
 (0)