LoginSignup
16
14

More than 5 years have passed since last update.

SourceTreeでgitのhookがエラーになってしまった場合の対応

Last updated at Posted at 2015-07-02

例えば、pre-commit などで gulp jshintするなどしていた場合にPATHが通らなくてエラーになってしまいます。
どうやら、GUIから使うシェル全般の話らしく、調べた結果こんな感じでshell scriptに書いておけば問題なくなりました。

#!/bin/sh
#
# Pre-commit hooks
PATH="/usr/local/bin:$PATH"
... # 処理

結局どうもちゃんとGUIからだと$PATHを見てくれないっていう話らしいっすね。

16
14
0

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
  3. You can use dark theme
What you can do with signing up
16
14