title: Git: fatal: Pathspec is in submodule
body: <p>I'm trying to get TravisCI to automatically deploy my Hakyll static site, according to <a href="http://timbaumann.info/posts/2013-08-04-hakyll-github-and-travis.html" rel="noreferrer">this guide</a>.</p>
  
  <p>Here's how my repo is set up. I have my source branch, which contains my hakyll and markdown files. It builds the html into the <code>_site</code> directory, which is set up as a submodule, linked to my <code>master</code> branch.</p>
  
  <p>I build the site without problem, then <code>cd</code> into the _site directory. However, when I try to <code>git add ./*</code> the newly generated HTML files, I get the following error:</p>
  
  <pre><code>fatal: Pathspec './about.html' is in submodule '_site'
  </code></pre>
  
  <p>When I try <code>git add --all</code>, I get this error:</p>
  
  <pre><code>git: pathspec.c:317: prefix_pathspec: Assertion `item-&gt;nowildcard_len &lt;= item-&gt;len &amp;&amp; item-&gt;prefix &lt;= item-&gt;len' failed.
  
  /home/travis/build.sh: line 245: 1566 Aborted git add --all
  </code></pre>
  
  <p>What is causing this, and how can I avoid this?</p>
  
  <p>You can view the repository <a href="https://github.com/JoeyEremondi/JoeyEremondi.github.io/tree/source" rel="noreferrer">here</a>.</p>