Skip to content

Commit

Permalink
bumper: use a non-breaking space for delimiting output
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kuznetsov <[email protected]>
  • Loading branch information
stevekuznetsov committed Aug 15, 2023
1 parent 0aa7042 commit 389369d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/bumper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func detectNewCommits(ctx context.Context, logger *logrus.Entry, stagingDir stri
infoCmd := exec.CommandContext(ctx,
"git", "show",
line,
"--pretty=format:%H|%cI|%an|%s",
"--pretty=format:%H\u00A0%cI\u00A0%an\u00A0%s",
"--quiet",
)
stdout, stderr := bytes.Buffer{}, bytes.Buffer{}
Expand All @@ -216,7 +216,7 @@ func detectNewCommits(ctx context.Context, logger *logrus.Entry, stagingDir stri
if err := infoCmd.Run(); err != nil {
return nil, fmt.Errorf("failed to run command: %s %s: %w", stdout.String(), stderr.String(), err)
}
parts := strings.Split(stdout.String(), "|")
parts := strings.Split(stdout.String(), "\u00A0")
if len(parts) != 4 {
return nil, fmt.Errorf("incorrect parts from git output: %v", stdout.String())
}
Expand Down

0 comments on commit 389369d

Please sign in to comment.