Skip to content

Commit

Permalink
trim space
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Aug 16, 2022
1 parent 9c36d3d commit e863844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (c *commander) cmdE(prog string, args ...string) (string, string, error) {
cmd.Dir = c.dir
}
err := cmd.Run()
return outBuf.String(), errBuf.String(), err
return strings.TrimSpace(outBuf.String()), strings.TrimSpace(errBuf.String()), err
}

func (c *commander) gitE(args ...string) (string, string, error) {
Expand Down

0 comments on commit e863844

Please sign in to comment.