gitflow-avh icon indicating copy to clipboard operation
gitflow-avh copied to clipboard

'git flow hotfix track' fails due to branch name check

Open rhencke opened this issue 9 years ago • 4 comments

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.

rhencke avatar Apr 22 '16 21:04 rhencke

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.

moreau-nicolas avatar Jun 21 '17 12:06 moreau-nicolas

I just ran into this same bug today. :angry:

jkankiewicz avatar May 21 '18 23:05 jkankiewicz

I’ll see if I have some time this week to fix it.

petervanderdoes avatar May 22 '18 14:05 petervanderdoes

I just ran into this same bug. Please accept PR from @blooper05

scareface1 avatar Oct 15 '19 08:10 scareface1