title: How to clone only a folder from a git submodule?
body: <p>I'm trying to get just a folder from an external github repo to use in my project.</p>
  
  <p>I want my project setup to be like this:</p>
  
  <pre><code>-my_project
      -submodule
          -code.py
      -MY_README
      -.git
  </code></pre>
  
  <p>And I have the remote repo named some-submodule with following structure:</p>
  
  <pre><code>-submodule
      -code.py
  -README
  -.gitignore
  </code></pre>
  
  <p>So I just want the submodule folder added to my project.</p>
  
  <p>But I end up with this after <pre>git submodule add <a href="http://github.com/user/submodule.git" rel="noreferrer">http://github.com/user/submodule.git</a> submodule</pre></p>
  
  <pre><code>-my_project
      -submodule
          -submodule
              -code.py
          -README
          -.gitignore
      -MY_README
      -.gitignore
  </code></pre>
  
  <p>I am new to git so I really don't know if it possible using just git. If it is of some help I'm using msysgit on windows.</p>
  
  <p>So, is there anyway that I can get a clean submodule folder in my project from a public repo?</p>
  
  <p>If you're curious of exactly what I'm trying to do I'm trying to take directly from their repos these django plugins <a href="http://github.com/adieu/django-dbindexer" rel="noreferrer">1</a> <a href="http://github.com/adieu/djangotoolbox" rel="noreferrer">2</a> to add them to my project.</p>