Skip to content

Commit 3091f9a

Browse files
committed
fix: remove redundant output when git operations fail
1 parent ceff6a4 commit 3091f9a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

internal/cmd/git.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ func runGitWithRetry(app *App, cmd *cobra.Command, op string, args []string) err
9191

9292
errText := strings.ToLower(stderrBuf.String() + "\n" + stdoutBuf.String() + "\n" + err.Error())
9393
if attempt == attempts || !isTransientGitErr(errText) {
94-
_, _ = io.Copy(cmd.OutOrStdout(), &stdoutBuf)
95-
_, _ = io.Copy(cmd.ErrOrStderr(), &stderrBuf)
9694
return fmt.Errorf("git %s failed: %w", op, err)
9795
}
9896

0 commit comments

Comments
 (0)