diff --git a/pkg/git/read.go b/pkg/git/read.go index aa125fc5..eaa5d319 100644 --- a/pkg/git/read.go +++ b/pkg/git/read.go @@ -40,7 +40,8 @@ func IsClean(repoPath string) (bool, error) { } if status.String() != "" { - log.Debugf("discovered git status in %s: %s", repoPath, status.String()) + noNewline := strings.TrimSuffix(status.String(), "\n") + log.Debugf("discovered git status in %s: %s", repoPath, noNewline) } else { log.Debugf("discovered clean git status in %s", repoPath) }