jacogr / atom-git-control

Not maintained :(
MIT License
227 stars 70 forks source link

git flow feature finish failed with configured prefixes #206

Open robs0n opened 7 years ago

robs0n commented 7 years ago

Hi,

if you configure git flow to prefix your branches the finish command will fail in atom-git-control. Because git flow expects the name of the feature, not the name of the feature branch.

Example:

.gitconfig:

...
[gitflow "prefix"]
  feature = feature- 
  bugfix = bugfix- 
  release = release- 
  hotfix = hotfix- 
  support = support- 
  versiontag = v 

To start a feature you use the git flow dialog: image

In the console you see:

> git flow feature start test
Switched to a new branch 'feature-test'

If you finish the feature you will get an error: image

> git flow feature finish feature-test
Fatal: Branch 'feature-feature-test' does not exist and is required.

In the dialog you could only choose existing branch names and it is not possible to edit them before submitting.