サブモジュールのディレクトリに入って以下のコマンドを実行する。
git rev-parse --git-dir
以下の様なパスが表示される。
/home/me/work/repos/my-pj/.git/modules/us-common
このパスが、サブモジュールにおける.gitディレクトリのようなもので、中にhookディレクトリがある。
サブモジュールに適用したいhookはその中に置けばいい。
Go to list of users who liked
More than 5 years have passed since last update.
サブモジュールのディレクトリに入って以下のコマンドを実行する。
git rev-parse --git-dir
以下の様なパスが表示される。
/home/me/work/repos/my-pj/.git/modules/us-common
このパスが、サブモジュールにおける.gitディレクトリのようなもので、中にhookディレクトリがある。
サブモジュールに適用したいhookはその中に置けばいい。
Register as a new user and use Qiita more conveniently
Go to list of users who liked