mob icon indicating copy to clipboard operation
mob copied to clipboard

"mob start" fails when base branch isn't a local branch and branch name contains hyphens

Open hollesse opened this issue 1 year ago • 0 comments

In Issue #451 we discovered that if we are on a wip branch which contains hyphens and the base branch is not checked out we get an error. This has to do with the wip branch qualifier feature and it's default seperator which is a hyphen. IMHO this can not be fixed without adjusting the behavior of wip branch qualifier or without changing the default seperator, which both would be breaking changes.

❯ git sw mob/base-branch-with-hyphens
branch 'mob/base-branch-with-hyphens' set up to track 'origin/mob/base-branch-with-hyphens'.
Switched to a new branch 'mob/base-branch-with-hyphens'

❯ mob s
  git fetch origin --prune
ERROR Remote branch origin/base is missing
👉 To start and create the remote branch

  mob start --create

lets discuss what we want to do here @simonharrer @gregorriegler

hollesse avatar Oct 11 '24 06:10 hollesse