Skip to content

fix: cut-release.ps1 null .Trim() when working tree is clean#408

Merged
jongalloway merged 1 commit intomainfrom
fix/cut-release-null-trim
Mar 18, 2026
Merged

fix: cut-release.ps1 null .Trim() when working tree is clean#408
jongalloway merged 1 commit intomainfrom
fix/cut-release-null-trim

Conversation

@jongalloway
Copy link
Copy Markdown
Owner

git status --porcelain returns `` (not an empty string) when the working tree is clean, so .Trim() throws `You cannot call a method on a null-valued expression`. Pipes through `Out-String` first to guarantee a string value.

Blocks the v1.1.1 release tag.

git status --porcelain returns $null (not empty string) when clean,
causing .Trim() to throw. Pipe through Out-String first.
@jongalloway jongalloway merged commit 1324b2d into main Mar 18, 2026
4 checks passed
@jongalloway jongalloway deleted the fix/cut-release-null-trim branch March 18, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant