mirror of
https://github.com/initialcommit-com/git-sim.git
synced 2026-04-27 11:35:58 +03:00
[GH-ISSUE #41] If there are branches whose names include slash(/) in local, KeyError will occur on any operations. #31
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/git-sim#31
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 @polisherm on GitHub (Jan 29, 2023).
Original GitHub issue: https://github.com/initialcommit-com/git-sim/issues/41
A git branch name can include slash symbol(/).
e.g) feature/feature-A
However,
git-simthrowsKeyErrorif the branches's name include slash.There is the reason most likely in following lines.
github.com/initialcommit-com/git-sim@84811ee252/git_sim/git_sim_base_command.py (L319-L327)This if-statement conditional branch is insufficient.
If possible, could you consider other means of determining whether a branch is a remote branch or not?
I also try to explore the way. (I am not familiar with Python and Git, so it is perhaps difficult for me to make Pull Request about this issue.)
@initialcommit-io commented on GitHub (Jan 29, 2023):
@k1997y Yes you're right. I will use the supported GitPython calls to determine if the branch is local or remote, instead of this slash test. I will push a fix for this soon. Thanks for finding and reporting this bug!
@initialcommit-io commented on GitHub (Jan 29, 2023):
@k1997y Just pushed a fix for this in new version 0.1.8. Please update using:
And let me know if it works now! I will close this for now but feel free to reopen if any issues.
@polisherm commented on GitHub (Jan 30, 2023):
@initialcommit-io
Thank you for your very quick response and fixing!!
I expect you to make this product better, Thank you very much.