From 2094fa6062832595bd4ada6f00f7cf8d75c020b5 Mon Sep 17 00:00:00 2001 From: Yasuaki Uechi Date: Thu, 11 May 2017 15:07:42 +0900 Subject: [PATCH] fix: dont trim status line --- git.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git.go b/git.go index f7ad8ed..55b1540 100644 --- a/git.go +++ b/git.go @@ -79,9 +79,9 @@ func GitStatus(targetPath string) ([]string, error) { return nil, errors.New("No status changed") } - statuses := strings.Split(strings.TrimSpace(string(out)), "\n") + statuses := strings.Split(string(out), "\n") - return statuses, nil + return statuses[:len(statuses)-1], nil } // git log --branches --not --remotes