From bfed51a69c68ecadfd576a7d06c3191ae73a5d76 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 31 Dec 2024 08:26:35 +0100 Subject: [PATCH] fix: no newline on status in logs --- pkg/git/read.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) }