switch
displays incorrect if set-parent
was previous used on perennial branch
#3218
Labels
switch
displays incorrect if set-parent
was previous used on perennial branch
#3218
Let's say I have a branch called
release-v1.0.0
. Logically speaking it is a perennial branch, but for whatever reason it was not set as a perennial either viaperennial-branches
orperennial-regex
. If I set its parent tomain
, then Git Town will keep track of it as a feature branch by adding the following to the local Git config file:So according to Git Town,
release-v1.0.0
is considered a feature branch. Now if setperennial-regex
torelease-.*
and rungt switch
, I will see this:However, this is technically not correct, as
release-v1.0.0
is perennial and technically shouldn't have a parent anymore. I expectswitch
to show me this instead:Which correctly indicates that
release-v1.0.0
is perennial. As part of theswitch
command, perhaps we could clean up branch config from the local Git config file to correctly?I believe this would be need to be addressed in order to complete #3164 as well, since in case where this happens, what would Git Town consider the branch type for
release-v1.0.0
to be?The text was updated successfully, but these errors were encountered: