SourceTree can not create "Git Flow" Workflow

Hi folks,

I have a problem with SourceTree. I have installed the latest Version and clone my private repository from bitbucket. This works fine but if I want to create the "Git Flow" Workflow I get following error:

git init -d 
/Applications/SourceTree.app/Contents/Resources/git_local/gitflow/git-flow: line 41: uname: command not found
/Applications/SourceTree.app/Contents/Resources/git_local/gitflow/git-flow: line 41: egrep: command not found
/Applications/SourceTree.app/Contents/Resources/git_local/gitflow/git-flow: line 50: sed: command not found
/Applications/SourceTree.app/Contents/Resources/git_local/gitflow/git-flow: line 50: dirname: command not found
/Applications/SourceTree.app/Contents/Resources/git_local/gitflow/git-flow: line 73: /gitflow-common: No such file or directory
Completed with errors, see above

All of the listed commands are usable over terminal as they should. But how can I fix this issue =/?

Regards,

Sebastian

2 answers

1 accepted

Have you manually modified any environment variables, or used Homebrew? If so, the problem is not with SourceTree. You might try this solution from stack overflow, but be cautious modifying environment variables like $PATH - you can mess other software up.

Thanks for your response Seth, but my $PATH looks pretty normal:

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

No Homebrew installed

I finally found the issue.

And indeed it was $PATH, but it is not so obvious: I had stuff in my launchd.conf which caused the error.... removed that stuff and restarted the system :) thanks for your help!

You should mark this as a correct answer also.

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...

414 views 0 1
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