It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Stash Default Branch Problems

When creating a branch from JIRA it doesn't seem to respect the branching model for the repo as defined in Stash (using 2.12.x) . Again, I couldn't find an issue for this, but I had trouble searching as the only search terms I could think of were a bit ambiguous.

In Stash (see tab: Branching model) I've set "develop" as the default development branch and "master" as the default production branch.

Therefore, when I create a branch from a JIRA "New Feature", I would expect the "branch from" branch to be develop. This is quite important if master actually holds the commits that represent releases. However it does not as by default it fills in the "master" branch, not develop.

A similar, but not the same issue, is, when creating a pull request for this branch, should it not default the destination to the "from" branch? Currently it does not, and it seems all too easy to get this wrong.

copied from: to Jamie Echlin

1 answer

1 vote
Jason Hinch Atlassian Team Jul 11, 2014

Currently the branch creation defaults to the default branch for the repository, instead of the development branch. If you are using gitflow, the convention is normally to have the stable branch (master) as the default branch which is checked out when cloning. Your best option would be to change the default branch to 'develop' and/or raise an improvement request at jira.atlassian.comin the STASH project

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

4,100 views 4 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you