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 Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

245 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot