Disable auto-replaces spaces with dashes

SourceTree 2.3.5 for mac has added auto replacing of spaces with hyphens in branch names.

Is there any way to disable this 'functionality'?

2 answers

1 accepted

1 vote

Hi Beau, the developers replied and told me it's expected: BbC's REST API has rules when creating repos or branches and has a limitation around spaces so we automatically replace them now. 

Replacing spaces with dashes was also a much requested feature. If you'd like to change this, you can submit a Feature request at jira.atlassian.com by clicking the Create button.

Hope this helps!

Ana

0 vote

Hi Beau, currently it's not possible to disable that functionality. Branches can not contain spaces (as per the official git documentation), in previous SourceTree versions you'd get an error if you tried to do create a branch with a space on it and the branch would not be created.

Hope this helps!

Ana 

This is for Mercurial, not git, and was only introduced in the latest release (2.3.5 for Mac).

We've been using branch names with spaces for ever with no issues.

Hi Beau, thanks for clarifying. You didn't specify which DVCS were you using and I assumed it was Git. Regarding Mercurial, I've contacted the developers to ask them if this new behavior is expected to happen with Hg as well or was intended only for Git, I'll let you know once I get a response. 

Cheers!

Ana

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

546 views 1 2
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you