git-split-branch icon indicating copy to clipboard operation
git-split-branch copied to clipboard

It doesn't seem to like branches with hyphens

Open morgen-peschke opened this issue 6 years ago • 0 comments

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.

morgen-peschke avatar Apr 01 '19 17:04 morgen-peschke