title: How is ignore-paths evaluated in git svn?
body: <p>I have a simple repo structure like this:</p>
  
  <pre><code>trunk
      code
      othercode
      doc
      misc
  branches
      b1
          code
          othercode
          doc
          misc
      b2
  tags
      t1
      t2
  </code></pre>
  
  <p>I'm trying to use <code>git svn</code> to clone it, but want to omit <code>doc</code> and <code>misc</code> on trunk + all tags and branches.  However, the <code>ignore-paths</code> option isn't acting like I'd expect.</p>
  
  <pre><code>ignore-paths = (doc|misc)
  </code></pre>
  
  <p>Seems to work, but I'm worried that it would also exclude a path like <code>trunk/code/proj1/doc/</code>, which I want to keep.</p>
  
  <pre><code>ignore-paths = ^(doc|misc)
  </code></pre>
  
  <p>Does not work -- <code>doc</code> and <code>misc</code> are pulled in by the initial <code>git svn fetch</code> command.  How do I get a working regex that'll only match against directories at the root like this?  The man page does not say whether <code>ignore-paths</code> matches against the "relative" path that'll end up at the root of the git clone (<code>doc</code>, etc.) or the "full" path as seen in the SVN remote (<code>branches/b1/doc</code> etc.), or something else.</p>