Skip to content

Commit 389369d

Browse files
bumper: use a non-breaking space for delimiting output
Signed-off-by: Steve Kuznetsov <[email protected]>
1 parent 0aa7042 commit 389369d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/bumper/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func detectNewCommits(ctx context.Context, logger *logrus.Entry, stagingDir stri
206206
infoCmd := exec.CommandContext(ctx,
207207
"git", "show",
208208
line,
209-
"--pretty=format:%H|%cI|%an|%s",
209+
"--pretty=format:%H\u00A0%cI\u00A0%an\u00A0%s",
210210
"--quiet",
211211
)
212212
stdout, stderr := bytes.Buffer{}, bytes.Buffer{}
@@ -216,7 +216,7 @@ func detectNewCommits(ctx context.Context, logger *logrus.Entry, stagingDir stri
216216
if err := infoCmd.Run(); err != nil {
217217
return nil, fmt.Errorf("failed to run command: %s %s: %w", stdout.String(), stderr.String(), err)
218218
}
219-
parts := strings.Split(stdout.String(), "|")
219+
parts := strings.Split(stdout.String(), "\u00A0")
220220
if len(parts) != 4 {
221221
return nil, fmt.Errorf("incorrect parts from git output: %v", stdout.String())
222222
}

0 commit comments

Comments
 (0)