'git flow hotfix track' fails due to branch name check
Given the following repository setup:
- Repository is initialized with git flow
- A hotfix branch exists on origin (say,
hotfix/1.2.3) - No local hotfix branch exists.
The following command fails:
git flow hotfix track 1.2.3
with:
Fatal: Branch 'hotfix/1.2.3' already exists. Pick another name.
Even though no such branch exists locally.
This is due to https://github.com/petervanderdoes/gitflow-avh/blob/develop/git-flow-hotfix#L343, where require_branch_absent requires both the local AND remote branch to be absent.
Hello. @petervanderdoes Is someone already working on a fix for this ? This problem seems quite old. I'd be willing to try and submit a PR.
I just ran into this same bug today. :angry:
I’ll see if I have some time this week to fix it.
I just ran into this same bug. Please accept PR from @blooper05