From e86384430cc077d466ea4319f8c4db0b3a70d6aa Mon Sep 17 00:00:00 2001 From: Songmu Date: Tue, 16 Aug 2022 17:59:58 +0900 Subject: [PATCH] trim space --- git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git.go b/git.go index 6733d1a..f58aa2f 100644 --- a/git.go +++ b/git.go @@ -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) {