で作成したリモコンがありgit --bare init
ます。
押すと次のようになります。
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 368 bytes, done.
Total 4 (delta 1), reused 0 (delta 0)
fatal: exec hooks/post-receive failed.
error: hooks/post-receive exited with error code 128
フック/受信後は次のようになります。
#!/bin/sh
git checkout -f
作業ツリーはリモート構成で設定されます(リモートにcdしてワークツリーgit checkout -f
にチェックアウトする場合、パスは問題ありません)。
フックのpermsは次のようになります。
-rwxr-xr-x 1 my-user git 28 Sep 20 2010 my.git/hooks/post-receive
フックが失敗する理由についての手がかりはありますか?