-
Notifications
You must be signed in to change notification settings - Fork 30k
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 #44776 - Error on "Undo Last Commit" if executed against the initial commit #47578
Conversation
@ryu1kn While tests are great, I'm not too happy in having stubs in the git tests. Either make them not use stubs, or remove them. |
Repository’s |
@joaomoreno Can you think of better way of writing those tests? I believe those tests, especially the ones for |
Or I can test not the whole |
* Instead of testing it through `getCommit` as we don't use stub in test
* as we don't use stub in test
@joaomoreno I've updated the PR. How does it look now? |
@joaomoreno Haven't had a chance to look at it again? |
Thanks! 🍻 |
Fix for the issue #44776. Why I fixed this way is written in #44776 (comment).
Please have a look 😉