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

Disallow Deletion of "Production Branch"

XMLWordPrintable

    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Currently Stash allows you to specify a "Default Branch". This cannot be deleted and in gitflow makes sense to be `develop`.

      In the branch configuration you can select a "Development Branch" (develop) and a "Production Branch" (master)

      It would be nice to have the option to stop the production branch from being deleted.

      Example use case:
      1) hotfix created from `master`
      2) auto-merge pushes to `develop` but fails, so puts in a pull request from master -> develop
      3) user fixes conflict and merges in Stash, but forgets to uncheck the "Delete source branch" box (which has a setting to remember it's last value)
      4) `master` is auto-deleted from Stash.

      This seems to be a fairly easy workflow to be able to accidentally delete master and seems a tad risky to me! As long as someone has an up-to-date version of master on their machine they can push it up again, but what if they don't???

            Unassigned Unassigned
            e21083c710c0 David Harper
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: