Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Sourcetree git flow not delete hotfix brach after finish it

Gonzalo Garcia February 19, 2018

Hello,

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
Atlassian Team members are employees working across the company in a wide variety of roles.
February 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
Atlassian Team members are employees working across the company in a wide variety of roles.
February 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. 

Gonzalo Garcia February 21, 2018

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
Atlassian Team members are employees working across the company in a wide variety of roles.
February 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".

Gonzalo Garcia February 21, 2018

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"

Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events