Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

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

Open
rhencke opened this issue Apr 22, 2016 · 4 comments · May be fixed by #376
Open

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

rhencke opened this issue Apr 22, 2016 · 4 comments · May be fixed by #376

Comments

@rhencke
Copy link

rhencke commented Apr 22, 2016

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.

@moreau-nicolas
Copy link

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.

@jkankiewicz
Copy link

I just ran into this same bug today. 😠

@petervanderdoes
Copy link
Owner

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

@blooper05 blooper05 linked a pull request Jun 25, 2018 that will close this issue
@scareface1
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants