diff --git a/Build/scripts/pre_build.ps1 b/Build/scripts/pre_build.ps1 index 9a54ccec249..8ed095d3c70 100644 --- a/Build/scripts/pre_build.ps1 +++ b/Build/scripts/pre_build.ps1 @@ -104,7 +104,8 @@ if (Test-Path Env:\TF_BUILD_SOURCEGETVERSION) # commit message $command = "$gitExe log -1 --name-status -p $commitHash" - $CommitMessage = iex $command + $CommitMessageLines = iex $command + $CommitMessage = $CommitMessageLines -join "`r`n" $changeTextFile = Join-Path -Path $outputDir -ChildPath "change.txt"