git hook pre-receive 不起作用

通过git init --bare 初始化了一个git server, 并且打开pre-receive的hook(cp pre-receive.sample pre-receive)
在client 端git push 的时候,pre-receive不起作用,好像是没有调到,改成python 或shell脚本都不行。
看官方文档说的很简单,为啥不起作用呢,请问有遇到过类似问题的吗?