oh-my-git
oh-my-git copied to clipboard
Branch from stash goal condition
I noticed that simply dragging the checkout card into one of the stash squares results in the goal condition passing despite there being no new branch.
The culprit is here: https://github.com/git-learning-game/oh-my-git/blob/main/levels/stash/stash-branch#L40
Detached head counts as a line in git branch --list
To reproduce
- Start
Branch from stashlevel - Drag checkout card into
Index on mainorWIPyellow squares