oh-my-git icon indicating copy to clipboard operation
oh-my-git copied to clipboard

Branch from stash goal condition

Open prscoelho opened this issue 3 years ago • 0 comments

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 stash level
  • Drag checkout card into Index on main or WIP yellow squares

prscoelho avatar May 28 '22 16:05 prscoelho