Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,376 views 4 5
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