I am setting up SourceTree with the same custom actions that work with another installation. For example, I have:
Script target: git
Parameters: clean -fx
When I attempt to invoke the action, I get:
git clean -fx
launch path not accessible
Completed with errors, see above
It works if I specify the full path of git in the script target: /usr/local/git/bin/git
But I would prefer to not have to specify that in each of the actions.
I have SourceTree configured to use system git with location /usr/local/git/bin/git. But I get the same error if I use embedded git.
I also tried an action:
Script target: /usr/sbin/which
Parameters: git
This also returns the error:
launch path not accessible
What gives?
SourceTree version 2.0.5.3
Git version 2.5.3
$ defaults read ${HOME}/.MacOSX/environment.plist PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin
This issue was somewhat resolved for me at some point. I cannot recall when but at some point git appeared in /usr/bin and I no longer get the launch path error for simple custom commands.
But I just had the same problem with launch path when trying to use a more involved command:
git tag -l | xargs git tag -d && git fetch -t'
To work around the problem, I created an alias:
git config --global --add alias.prunetags '!git tag -l | xargs git tag -d && git fetch -t'
I then made the custom command:
git prunetags
terminal: chmod 0755 path/file
worked for me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This solved it for me as well
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Example: chmod 0755 myscript.sh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm having the same issue. Can't figure out how to fix what it is trying to tell me. Did you ever resolve this? I tried "/usr/bin/git" as the command and "-C $REPO clean -fxdn" as parameters but still get the "launch path not accessible". I assume this means it cannot reach the command but I expected using and explicit path would work. I can certainly execute this from the terminal. Since I started SourceTree as my user, I'd expect it to have the same permissions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Should be, SourceTree features are typically developed for Mac first, then ported to Windows. Sounds like a Mac user needs to take a look at this, or maybe you'll need to try submitting a bug report to get the attention of Atlassian staff.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Colon is the delimiter in unix-based systems. Is there support for Mac?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A PATH issue seems most likely, but it looks like the correct git location is listed in the PATH. I'm not a Mac user - are the different items in the path supposed to be separated by colons? Semi-colons seem like a more typical delimiter for this sort of thing. Although you'd probably have bigger problems if your PATH is using the wrong delimiter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.