CJ-Systems / gitflow-cjs

CJS Edition of the git extensions to provide high-level repository operations for Vincent Driessen's branching model
http://nvie.com/posts/a-successful-git-branching-model/
Other
88 stars 12 forks source link

fix: git flow hotfix track fails due to branch name check #68

Closed ChrisJStone closed 1 year ago

ChrisJStone commented 1 year ago

Given the following repository setup:

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.

ChrisJStone commented 1 year ago

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.

ChrisJStone commented 1 year ago

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

ChrisJStone commented 1 year ago

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

ChrisJStone commented 1 year ago

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