title: Git: committing a symlink to a folder
body: <p>When adding to the index a symlink to a directory, I get the following error message:</p>
  
  <pre><code>fatal: pathspec 'XXX' did not match any files
  </code></pre>
  
  <p>The file is there, and it is indeed a symlink, even to a directory inside the repository in fact.</p>