In some case when a repo cloned using HTTP (not with SSH) the pre-commit hook not working. I really don't have idea why it happens.