
以下の手順を使用して、サーバー上で git フック コミットを実装しようとしています。https://git-scm.com/book/be/v2/Customizing-Git-An-Example-Git-Enforced-Policy
ファイル「update」を作成しました(実行可能にして、hooks フォルダーに配置します)が、git commit -m "my message" と git push を実行してもこのファイルが実行されないことがわかりました。これらのコマンドはすべて正常に動作しますが、「update」ファイルは動作しません(簡単なスクリプト「echo "Hello World" >> somefile.txt」で試しました)
問題はどこだ?