Skip to content

Commit 1324b2d

Browse files
authored
Merge pull request #408 from jongalloway/fix/cut-release-null-trim
fix: cut-release.ps1 null .Trim() when working tree is clean
2 parents 52899d8 + 7f14b33 commit 1324b2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/cut-release.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ if ($branch -ne 'main')
9191
Invoke-Git @('pull', '--ff-only')
9292

9393
# Require clean working tree
94-
$statusPorcelain = (& git status --porcelain).Trim()
94+
$statusPorcelain = (& git status --porcelain) | Out-String
95+
$statusPorcelain = $statusPorcelain.Trim()
9596
if ($LASTEXITCODE -ne 0)
9697
{
9798
Fail "Unable to read git status."

0 commit comments

Comments
 (0)