Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-4257

Create branch from a tag context should honour the base tag as selected

      Currently, the 'Create Branch' screen can only create branches based on existing branches. Would be feasible to add the Tags compatibility, by that the developers can create branches from tags as well.

            [BSERV-4257] Create branch from a tag context should honour the base tag as selected

            teo.morell180586480, this issue relates to Bitbucket Server. There is a separate issue tracker for Bitbucket Cloud at https://bitbucket.org/site/master/

            Roger Barnes (Inactive) added a comment - teo.morell180586480 , this issue relates to Bitbucket Server. There is a separate issue tracker for Bitbucket Cloud at https://bitbucket.org/site/master/

            Teo Morell added a comment - - edited

            About, "Would you mind elaborating on the use case for this, that is in what situations you need to create a branch from a tag that has no other marker?"

            Hot-fixing branching from a tag is very common. It is odd to see this question.
            For the moment, we are branching from git bash, but we are then not making use of custom flows in Jira.
            This issue dates back to 2014. Amazing that it has not been implemented, being functionality that it already exists in git.

            I just noticed that the issue is marked as closed. The latest Bitbucket cloud does not have it.

            Teo Morell added a comment - - edited About, "Would you mind elaborating on the use case for this, that is in what situations you need to create a branch from a tag that has no other marker?" Hot-fixing branching from a tag is very common. It is odd to see this question. For the moment, we are branching from git bash, but we are then not making use of custom flows in Jira. This issue dates back to 2014. Amazing that it has not been implemented, being functionality that it already exists in git. I just noticed that the issue is marked as closed. The latest Bitbucket cloud does not have it.

            Bryan Bai added a comment -

            We have same situation , when we want to create a bug fix branch from specific tag.

            The confused part is, even you select a tag then create a branch, the new branch is off from currently branch instead of tag, there no warning or notification about this.

            Bryan Bai added a comment - We have same situation , when we want to create a bug fix branch from specific tag. The confused part is, even you select a tag then create a branch, the new branch is off from currently branch instead of tag, there no warning or notification about this.

            The Bug fix branch from tag scenario also matches our use case

            Shaun Adams
            CM Team
            Met Office

            Release Engineering added a comment - The Bug fix branch from tag scenario also matches our use case Shaun Adams CM Team Met Office

            Ditto. My use case is exactly what Larry describes.

            -Bjarni

            Bjarni Thorbjornsson added a comment - Ditto. My use case is exactly what Larry describes. -Bjarni

            We had an older release of the software that a bugfix needed to go on. The developer working on a bug fix for an older version of some software. There was no other branch for that older code line. He went into stash to create the branch, selected the tag, and didn't notice it made it off master. The UI seemed to tell him he could from the tag screen, but didn't notice on the branch creation the source was changed.

            I ended up doing it from the command line for him, since some of the developers are not as up to speed on git. I prefer to have the tools be as self service as possible. If branches are not to be made from tags in Stash, please remove the "Create branch from here" from places that it is not allowed or supported. Of course I would prefer the ability to create them from tags.

            Larry Shatzer added a comment - We had an older release of the software that a bugfix needed to go on. The developer working on a bug fix for an older version of some software. There was no other branch for that older code line. He went into stash to create the branch, selected the tag, and didn't notice it made it off master. The UI seemed to tell him he could from the tag screen, but didn't notice on the branch creation the source was changed. I ended up doing it from the command line for him, since some of the developers are not as up to speed on git. I prefer to have the tools be as self service as possible. If branches are not to be made from tags in Stash, please remove the "Create branch from here" from places that it is not allowed or supported. Of course I would prefer the ability to create them from tags.

            Hi Larry,

            Would you mind elaborating on the use case for this, that is in what situations you need to create a branch from a tag that has no other marker?

            Also, would doing this from the client side be a viable workaround for you?

            Roger Barnes (Inactive) added a comment - Hi Larry, Would you mind elaborating on the use case for this, that is in what situations you need to create a branch from a tag that has no other marker? Also, would doing this from the client side be a viable workaround for you?

              jthomas@atlassian.com Justin Thomas
              b1503c75d08f Larry Shatzer
              Affected customers:
              19 This affects my team
              Watchers:
              20 Start watching this issue

                Created:
                Updated:
                Resolved: