0
0
forked from toolshed/abra

fix: no newline on status in logs

This commit is contained in:
2024-12-31 08:26:35 +01:00
parent 5d0faf5e13
commit bfed51a69c

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