git flow release start <release-name> - cannot create release and returns a list of feature branches?

5,740 views
Skip to first unread message

Mathew Powell

unread,
Feb 6, 2013, 5:55:33 AM2/6/13
to gitflo...@googlegroups.com
Hi All,

I am doing a git flow release start version1_0 and then receiving the following response:
"There is an existing release branch (list of feature branches here). Finish that one first."

However the list of 3 branches returned is a list of feature branches that i don't wish to place in this release as they are not complete.

If i run a git flow feature list it returns exactly the same list of branches as when i run a git flow release list.

These branches were created using git flow feature start <feature-name>.

I am using git version 1.8
When i pull the git flow repo it says that I am "Already up-to-date."

I have had a google and have not seen similar elsewhere.
Grateful for any tips on what might be wrong or workarounds. 

Many Thanks
Mathew (git + gitflow newbie)

Mathew Powell

unread,
Feb 6, 2013, 7:00:05 AM2/6/13
to gitflo...@googlegroups.com
Posting the above has got me thinking that my branch prefixes are missing.

Is there anyway I can add branch prefixes in retrospectively?

Thanks again
Mathew

Luke Farrar

unread,
Feb 6, 2013, 7:04:22 AM2/6/13
to gitflo...@googlegroups.com

I think you could force new prefixes with with git flow init -f

Luke Farrar
--
You received this message because you are subscribed to the Google Groups "gitflow-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitflow-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


-- 
Luke Farrar
Java Developer
The Book People Ltd.

Luke Farrar

unread,
Feb 6, 2013, 7:08:47 AM2/6/13
to gitflo...@googlegroups.com

Oh, and you might need to rename existing branches to the new prefixes.

e.g. git branch -m 0.1 release/0.1

Luke Farrar

Mathew Powell

unread,
Feb 6, 2013, 7:25:26 AM2/6/13
to gitflo...@googlegroups.com
OK me again.

To answer my own question: Yes the prefixes can be changed by editing .git/config (https://answers.atlassian.com/questions/111285/how-can-i-reset-the-prefixes-feature-hotfix-of-git-flow).

As i suspected i did not have my prefixes setup correctly. I have now updated all except the features prefix as i have some active and based on the above post they will not work correctly if i change them now.

However could i safely change the feature prefix in the future when i have no active features?

Thanks again (I am getting there :))
Mathew

Mathew Powell

unread,
Feb 6, 2013, 7:29:19 AM2/6/13
to gitflo...@googlegroups.com
Thanks Luke,

Do you know if i can safely update the feature prefix then rename existing features as you suggested?
Thanks
Mathew

Luke Farrar

unread,
Feb 6, 2013, 8:28:29 AM2/6/13
to gitflo...@googlegroups.com

Yes, should be fine. After all, a feature branch is just a branch with the prefix in its name.

Luke
Reply all
Reply to author
Forward
0 new messages