title: fatal: git-write-tree: error building trees
body: <p>I'm trying to import a large subversion repository into git using git-svn (so that I can work in git but still dcommit to subversion from time to time). After importing more than 4000 revisions I'm now getting the following error whenever I run <code>git svn fetch</code> or <code>git svn rebase</code>, which I don't manage to get rid of:</p>
  
  <pre><code>$ git svn fetch
  error: invalid object 100644 1f2....742 for 'src/path/.../file.cs'
  fatal: git-write-tree: error building trees
  write-tree: command returned error: 128
  </code></pre>
  
  <p>What I've tried so far:</p>
  
  <ul>
  <li><code>git fsck --full</code> doesn't report anything, neither does <code>git fsck --unreachable</code> or <code>git fsck --no-reflog</code></li>
  <li><code>git gc --aggressive</code> doesn't help</li>
  <li>moving the single pack file away and reimporting it with <code>git unpack-objects</code> doesn't help</li>
  <li><code>git svn reset -rXY</code> with XY a bit lower than the latest imported revsion doesn't seem to help either, neither does manually removing the latest entries from the <code>reflog</code> up to XY.</li>
  <li>reboot. Sounds silly, but I did observe some weird issues while importing the first ~4000 revision, as if something was leaking a lot of kernel resources (most likely in windows subsystem), might be related to msys/mingw (or the avira virus scanner, which I disabled for testing).</li>
  </ul>
  
  <p>I also didn't find out what error 128 really stands for. Any ideas? Thanks in advance!</p>
  
  <p>Might be related to <a href="https://stackoverflow.com/questions/338164/fatal-error-unpacking-a-tree-object-during-a-git-svn-fetch">this question</a> which is about error 128 as well but with different error messages, and without a solution.</p>
  
  <p>msysgit version <code>1.6.4.msysgit.0</code> with bash on xp sp3 </p>