Skip to content

It doesn't seem to like branches with hyphens #5

@morgen-peschke

Description

@morgen-peschke

We follow a naming convention which includes the ticket in the branch name, and the hyphen seems to be causing problems:

git split-branch -b 13efef4ed5ec1587ead0524f11dd173b2dc33e02 -r feature/DEV-25218/remainder feature/DEV-25218/source feature/DEV-123/protean protean/
git-split-branch: line 141: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
git-split-branch: line 144: feature/DEV-123/protean: division by 0 (error token is "-123/protean")
Rewrite 4bbe1096e14c32a40a35ef9ee87be94d1c7515de (1/35) (0 seconds passed, remaining 0 predicted)    git-split-branch: line 228: feature/DEV-123/protean: division by 0 (error token is "-123/protean")

I was able to work around this by renaming the branch, so this script was still a huge help, but it's the sort of thing I figured I should let someone know about.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions