title: git core.hooksPath permission denied issue
body: <p>I'm trying to have one repo with all my githooks and every other repo references that.</p>
  
  <p>My repo directory structure looks like this.</p>
  
  <pre><code>~/dev/githooks/.git/hooks
   |-&gt; pre-push
     |-&gt; prevent-master
  </code></pre>
  
  <p><code>prevent-master</code></p>
  
  <pre><code>#!/bin/sh
  
  branch_blocked="master"
  
  if grep -q "$branch_blocked"; then
      echo "Branch '$branch_blocked' is blocked by yourself." &gt;&amp;2
      exit 1
  fi
  </code></pre>
  
  <p>Now I tell my git config to use this githook directory <code>git config core.hooksPath ~/dev/githooks/.git/hooks</code></p>
  
  <p>In a separate repo I'm trying to push and it says</p>
  
  <pre><code>clickthisnick$ git push
  fatal: cannot exec '/Users/clickthisnick/dev/githooks/.git/hooks/pre-push': Permission denied
  </code></pre>
  
  <p>I have <code>chmod -R +xr ~/dev/githooks</code> and am using a git version that supports this <code>git version 2.17.2</code>. </p>
  
  <p>Anything else I can try to get this to work?</p>