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

Sourcetree git flow not delete hotfix brach after finish it


With new version 2.7.1 for Mac, Git Flow action in Hotfix "Finish Current" checkbox "Delete branch" is not working. The hotfix branch is not deleted after merging into master and develop.

Also the avatar list is not updated immediately with new information about commits and branch selection, it takes some minutes to reflect the current branch.

1 answer

1 accepted

0 votes
Answer accepted
Manju Atlassian Team Feb 20, 2018

We have ticket for this and are currently investigating. This will be fixed in the next release. In the meanwhile, you can try resetting to system git from Preferences - Git tab to see if it helps. 

Manju Atlassian Team Feb 20, 2018

You need getopt to make this work. You can follow the Post Installation setup from Installing-on-Mac-OS-X to get this working. 

Hi, thank you for your comments.

First I tried changing the git to system git, but it does not work.

After that, I try installing: 

brew install git-flow-avh

but I get an error:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

So I search for that error and correct it with:

xcode-select --install

Then I try updating brew:

brew update && brew upgrade

But I get another error:

Error: An unexpected error occurred during the `brew link` step

The formula built, but is not symlinked into /usr/local

Permission denied @ dir_s_mkdir - /usr/local/Frameworks

Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks

So I execute the following:

sudo mkdir /usr/local/Frameworks

sudo chown $(whoami):admin /usr/local/Frameworks

After that I could update brew and install git-flow-avh

brew update && brew upgrade

brew install git-flow-avh

So I change now the git preference to use the installed git flow and now it works.


Thank you for your help

Manju Atlassian Team Feb 21, 2018

With embedded git, all that you have to do is, 

Install GNU getopt via Homebrew:

brew install gnu-getopt

Create a ~/.gitflow_export with the content export FLAGS_GETOPT_CMD="$(brew --prefix gnu-getopt)/bin/getopt".

I tried this way also, it works but I had to indicate the absolute location for brew:

export FLAGS_GETOPT_CMD="$(/usr/local/bin/brew --prefix gnu-getopt)/bin/getopt"


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,955 views 0 12
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