Skip to content

Commit e1d7dc3

Browse files
committed
fix: use stdout by default on dotfile cmds
1 parent 011b2b3 commit e1d7dc3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cli/dotfiles.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,7 @@ func ensureCorrectGitBranch(baseInv *clibase.Invocation, params ensureCorrectGit
292292
c := exec.CommandContext(baseInv.Context(), cmd, args...)
293293
c.Dir = params.repoDir
294294
c.Env = append(baseInv.Environ.ToOS(), fmt.Sprintf(`GIT_SSH_COMMAND=%s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no`, params.gitSSHCommand))
295-
var out bytes.Buffer
296-
c.Stdout = &out
295+
c.Stdout = baseInv.Stdout
297296
c.Stderr = baseInv.Stderr
298297
return c
299298
}

0 commit comments

Comments
 (0)