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:
review.sh /Users/slavender/git/ci launch path not accessible Completed with errors, see above
Bash script:
#!/bin/bash cd $1 git review
Any ideas?
You'll need to specify the full path to review.sh because Mac OS X apps do not inherit your terminal's path. Alternatively you need to add the path to /etc/paths and reboot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I even add the full path to git to the script contents... Same error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Getting closer...
review.sh /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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does review.sh have the executable bit set?
chmod +x /path/to/review.sh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.