Skip to content

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

Open
@hollesse

Description

@hollesse

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions