Skip to content

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

@ChrisJStone

Description

@ChrisJStone

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions