mirror of
https://github.com/initialcommit-com/git-sim.git
synced 2026-04-27 03:25:53 +03:00
[GH-ISSUE #30] git-sim reset can't seem to work #22
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/git-sim#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zadigus on GitHub (Jan 27, 2023).
Original GitHub issue: https://github.com/initialcommit-com/git-sim/issues/30
I wanted to give
git-sima go, because it seems interesting. I therefore installed it on my windows machine, like this:I have python 3.10. Now, I wanted to quickly check if it works and in one of my repositories, I ran
which tells me that the reset works like this:
So essentially all options are optional, i.e. I should be able to run
git-sim reset, which I did, with the following result:Sounds crazy, not sure I will continue to
git-simif I get such an issue after the first command. I also triedgit-sim tag. That one seems fine.@initialcommit-io commented on GitHub (Jan 27, 2023):
Hi @zadigus,
Thanks for reporting this! It's actually a bug that I accidentally introduced yesterday when fixing something else, but I fixed it now and released git-sim version 0.1.6.
Please update your git-sim version to the latest by running
pip install git-sim --upgrade, which should get you the new version 0.1.6.Sorry about the bug and let me know if it works now! Also, keep in mind this is a new project so I know there are other issues that will come up in general. I'm working with some new contributors to try and address these while also adding new features to the tool.
Please be patient with us we'd love to keep you as a git-sim user :D. If you notice any other issues please let me know. and we'll get it fixed as soon as possible.
@zadigus commented on GitHub (Jan 27, 2023):
Thanks for the quick-fix. I will continue to play with it then!
The big issue I see with your repository is that it completely lacks tests. I am not sure, but I can imagine that you could be able to integration test you application with some kind of snapshot testing. Indeed, you generate some output in some format that you should be able to easily snapshot test. That would be a simple way to prevent regressions in your code.