When I change the pre-commit hook to:

```sh
#!/bin/sh
exit 1;
```

...it works correctly.