Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

hyaocuk
Copy link

@hyaocuk hyaocuk commented Dec 23, 2021

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.

None yet

1 participant