title: git pre- and post- commit hooks not running
body: <p>What could cause my git pre- and post- commit hooks to not run?</p>
  
  <p>(please note: this question is not a duplicate; the answer to each of the other questions is either <code>chmod +x</code> or "don't have a file extension", and neither are the issue here)</p>
  
  <p>They are executable:</p>
  
  <p><code>$ ls -alh .git/hooks/*-commit
  -rwxr-xr-x  … .git/hooks/post-commit
  -rwxr-xr-x  … .git/hooks/pre-commit</code></p>
  
  <p>And this is the content of each of them:</p>
  
  <p><code>#!/bin/sh
  echo "$0 IS RUNNING"
  exit 1
  </code></p>
  
  <p>Running them manually works:</p>
  
  <p><code>$ .git/hooks/pre-commit
  .git/hooks/pre-commit IS RUNNING
  </code></p>
  
  <p>But they aren't run by <code>git</code> on commit:</p>
  
  <p><code>$ git commit -am "Test hooks"
  [master d17c0f38] Test hooks
   1 file changed, 1 insertion(+)</code></p>
  
  <p>This is with git 2.16.2</p>