Skip to content

Commit

Permalink
fix(git): fast, ad-hoc fix, return exec.ExitError from gitCmd.Run()
Browse files Browse the repository at this point in the history
  • Loading branch information
distorhead committed Jan 19, 2022
1 parent 0c1fcf0 commit d737d8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/true_git/git_cmd.go
Expand Up @@ -63,7 +63,8 @@ func (c *GitCmd) Run(ctx context.Context) error {

switch err := c.Cmd.Run(); err.(type) {
case *exec.ExitError:
return fmt.Errorf("error running command %q: %s\nStdout:\n%s\nStderr:\n%s", c, err, c.OutBuf, c.ErrBuf)
// return fmt.Errorf("error running command %q: %s\nStdout:\n%s\nStderr:\n%s", c, err, c.OutBuf, c.ErrBuf)
return err
case error:
return fmt.Errorf("error running command %q: %s", c, err)
}
Expand Down

0 comments on commit d737d8b

Please sign in to comment.