title: git-clone and post-checkout hook
body: <p>According to the manual, the <code>post-checkout</code> hook is run after a <code>git checkout</code> (just as expected) but also after a <code>git clone</code> (unless you pass <code>--no-checkout</code>).</p>
  
  <p>Very well, now, considering the following:</p>
  
  <ul>
  <li>you don't have a local repository before a <code>git clone</code></li>
  <li>hooks are not synced between remotes</li>
  <li><strike>hooks stored in a custom template directory used with <code>--template</code> are copied non-executable and therefore <em>not</em> executed after <code>git clone</code></strike> (that is actually not true as stated by Jefromi in his answer, but the hook is still not executed)</li>
  </ul>
  
  <p>It seems impossible that a <code>post-checkout</code> hook ever gets executed after a <code>git clone</code>. Still, the <code>githooks</code> man page at <a href="http://git-scm.com/docs/githooks" rel="noreferrer">http://git-scm.com/docs/githooks</a> explicitely states a way to avoid it being executed, and also parameters passed in case it is executed, which would indicate it is possible to execute a custom hook after a <code>git-clone</code>.</p>
  
  <p>So, how is it possible? I am obviously missing something here.</p>
  
  <p>Turns out </p>