Skip to content

Commit 5ab597a

Browse files
committed
fix: remove unnecessary redirection in git log command for commit messages
1 parent fbe7f0f commit 5ab597a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

updater/scripts/get-changelog.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ function Get-ChangelogFromCommits {
7474

7575
# Get commit messages between tags
7676
Write-Host "Getting commits between $oldTag and $newTag..."
77-
$commitMessages = git log "$oldTag..$newTag" --pretty=format:'%s' 2>&1
78-
77+
$commitMessages = git log "$oldTag..$newTag" --pretty=format:'%s'
7978
if ($LASTEXITCODE -ne 0) {
8079
Write-Warning "Could not get commits between $oldTag and $newTag (exit code: $LASTEXITCODE)"
8180
return $null

0 commit comments

Comments
 (0)