Closed dshafik closed 3 years ago
Thanks for reporting. It should be giving you a notice, so I assume this is a bug.
I just tried this again, and it deleted everything in my repo that wasn't staged. Thankfully that caused my tasks to fail and I was able to undo it.
The addition of ignore_unstaged_changes: true
is the only change I made between working as expected (except not ignoring unstaged files) and deleting everything.
As seen in the added movie in #859, GrumPHP Does mention that changes are being stashed. Closing this one for now.
There is currently no warning when the
ignore_unstaged_changes: true
parameter causes changes to be stashed. It would be very helpful to know that has happened as it may cause other tasks (e.g. phpunit) to fail, and the reasoning be unclear.Additionally, the ability to fail when there are unstaged changes would be useful to some I'm sure.