mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-15 14:03:06 +02:00
Fix stderr redirection (#3479)
- **PR Description** Seems that there's a problem in the Stdout/Stderr/Stdin stream vars assignments, probably copy-paste issue. If this is intentional, I suggest adding an explanation on why `Stderr` -> `Stdout` intentionally to avoid other PRs and confused people around :) Thanks!
This commit is contained in:
commit
4ba85608c8
@ -813,7 +813,7 @@ func (gui *Gui) runSubprocess(cmdObj oscommands.ICmdObj) error { //nolint:unpara
|
||||
|
||||
subprocess := cmdObj.GetCmd()
|
||||
subprocess.Stdout = os.Stdout
|
||||
subprocess.Stderr = os.Stdout
|
||||
subprocess.Stderr = os.Stderr
|
||||
subprocess.Stdin = os.Stdin
|
||||
|
||||
fmt.Fprintf(os.Stdout, "\n%s\n\n", style.FgBlue.Sprint("+ "+strings.Join(subprocess.Args, " ")))
|
||||
|
Loading…
x
Reference in New Issue
Block a user