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(repo): reset git index when terminating publishing #10689

Merged
merged 1 commit into from Jun 10, 2022

Conversation

FrozenPandaz
Copy link
Collaborator

Current Behavior

If you ctrl+C yarn nx-release, your git index will be messed up. If you have this error:

jason@pop-os ~/p/nx (master)> git checkout 13.10.x
error: Your local changes to the following files would be overwritten by checkout:
        README.md
        package.json
Please commit your changes or stash them before you switch branches.
Aborting
jason@pop-os ~/p/nx (master) [1]> git status
On branch master
Your branch and 'origin/master' have diverged,
and have 1 and 26 different commits each, respectively.
  (use "git pull" to merge the remote branch into yours)

nothing to commit, working tree clean

Run:

git update-index --no-assume-unchanged README.md package.json

Expected Behavior

This should always happen automatically even when terminating the process.

Related Issue(s)

Fixes #

@nx-cloud
Copy link

nx-cloud bot commented Jun 10, 2022

@vercel
Copy link

vercel bot commented Jun 10, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
nx-dev ⬜️ Ignored (Inspect) Jun 10, 2022 at 4:08PM (UTC)

@FrozenPandaz FrozenPandaz merged commit 049435c into nrwl:master Jun 10, 2022
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant