Skip to content

Commit fd61150

Browse files
committed
[MERGE #1477 @Cellule] Files changed on merge commit
Merge pull request #1477 from Cellule:merge_changes Change the git log command to list the file changed on a merge commit using the first parent. The file changed can be useful when consumed by tools trying to understand the nature of the change on that build.
2 parents 7e6e1be + 2c873cf commit fd61150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Build/scripts/pre_build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ if (Test-Path Env:\TF_BUILD_SOURCEGETVERSION)
113113
$buildPushId, $buildPushIdPart1, $buildPushIdPart2, $buildPushIdString = GetBuildPushId $info
114114

115115
# commit message
116-
$command = "$gitExe log -1 --name-status -p $commitHash"
116+
$command = "$gitExe log -1 --name-status -m --first-parent -p $commitHash"
117117
$CommitMessageLines = iex $command
118118
$CommitMessage = $CommitMessageLines -join "`r`n"
119119

0 commit comments

Comments
 (0)