LoginSignup
2

More than 3 years have passed since last update.

posted at

SourceTreeの'launch path not accessible' error

現象

ある日MacのSourceTreeでレポジトリを開こうとしたら急に
'git status' failed with code -1:'launch path not accessible '
'git log' failed with code -1:'launch path not accessible '
とか表示されて操作できなくなった。

TerminalからはCloneもPull/Push全てgitコマンドが動いたので最悪の事態ではなかったけども焦った。

原因

原因はTerminal用のgitを別途インストールした作業の過程でSourceTreeの設定として利用するgitがアクセス不能になっていたためっぽい。

解決方法

SourceTree->環境設定->Git 
Gitのバージョンでエラーメッセージが出ていたら同じ症状。  
内臓のGitに戻すか、今回はシステムのGitを改めて選択しただけで復旧した。

余談

相変わらず検索スキルが足りないのか同じ症状の人が見つからなくて焦った。

SourceTreeをアップデートしても治らず、
google先生にlaunch path macとざっくりした依頼をかけてTopに出てきていただいた
https://ics.media/entry/4475
を参考にして権限の問題だろうと当たりをつけて調べ、
https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-Custom-Action-on-Mac-returns-quot-launch-path-not/qaq-p/211631
この辺の議論を見て
「あ、そういえばGitを内臓のものを使うかどうかの設定があったよな」
と思いつくまでが長かった…

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
2