Skip to content

Commit 0ab6819

Browse files
committed
MicroBuild v2: Fix string formatting in change.txt.
1 parent 2475f39 commit 0ab6819

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Build/scripts/pre_build.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ if (Test-Path Env:\TF_BUILD_SOURCEGETVERSION)
104104

105105
# commit message
106106
$command = "$gitExe log -1 --name-status -p $commitHash"
107-
$CommitMessage = iex $command
107+
$CommitMessageLines = iex $command
108+
$CommitMessage = $CommitMessageLines -join "`r`n"
108109

109110
$changeTextFile = Join-Path -Path $outputDir -ChildPath "change.txt"
110111

0 commit comments

Comments
 (0)