-
Notifications
You must be signed in to change notification settings - Fork 10
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
Deleted files are being restored to the working tree #32
Comments
Man, I have looked long and hard to find a solution for this. I could not find one. Believe it or not, restoring the deleted file is the expected behavior for the I hope this explanation makes sense. This has nerd sniped me and I hope someone will find a work around, because this seems to be a problem in the npm pre-commit package that this elixir package is based off of. Edit: |
Thanks for the research @secondspass! It would be great to find a way to deal with this but if it's a limitation of git, as it seems to be, then we may be a little stumped. I think the best thing to do for now would be:
I'll sort the above this weekend :) EDIT: added the wontfix label so that there isn't confusion. Hopefully at some point we can remove it. |
When I tried updating to 0.3.4, the pre-commit hook started restoring files I had deleted.
Using
git stash push --keep-index
as in #30 restores deleted files to the working tree:The text was updated successfully, but these errors were encountered: