fix: no newline on status in logs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
decentral1se 2024-12-31 08:26:35 +01:00
parent 5d0faf5e13
commit bfed51a69c
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410

View File

@ -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)
}