fix: no newline on status in logs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5d0faf5e13
commit
bfed51a69c
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user