Skip to content

Fix: ensureCleanWorkingDirectory fails with only newly added files in the working directory - #923

Open
terrencekhng wants to merge 4 commits into
remix-run:devfrom
terrencekhng:bugfix/versioning
Open

Fix: ensureCleanWorkingDirectory fails with only newly added files in the working directory#923
terrencekhng wants to merge 4 commits into
remix-run:devfrom
terrencekhng:bugfix/versioning

Conversation

@terrencekhng

@terrencekhng terrencekhng commented Dec 23, 2021

Copy link
Copy Markdown

Description

I think it's a tiny bug. When there are only newly added files in the working directory, npm run version is not expected to fail in the ensureCleanWorkingDirectory step.

Before:
wecom-temp-cc1d50caa77c8b190317111f84b1d999

After:
wecom-temp-32f77ac83cd6bf5dc3b1c9fbaada29f3

Change

The trimmed output of git status --porcelain is an empty string if the working directory is clean for the next version number generation.

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