Running git-review

I am trying to create a custom action in Sourcetree to execute 'git review' on a repo with committed changes. The simple script fails to run with the output: /Users/slavender/git/ci 
launch path not accessible
Completed with errors, see above

Bash script:

cd $1
git review

Any ideas?

1 answer

1 accepted

You'll need to specify the full path to because Mac OS X apps do not inherit your terminal's path. Alternatively you need to add the path to /etc/paths and reboot.

I even add the full path to git to the script contents... Same error.

Getting closer... /Users/slavender/git/ci 
git: 'review' is not a git command. See 'git --help'.
Completed with errors, see above

git-review is installed and I can execute this command manually from the command line.

Does have the executable bit set?

chmod +x /path/to/

Since this is a custom extension you'll need to tell SourceTree to use your system version of Git instead of its own. In Preferences > Git, click the Use System Git button and point to your system git install (it may pick it up by default but just check it's the right path)

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

231 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