title: Git: "Corrupt loose object"
body: <p>Whenever I pull from my remote, I get the following error about compression. When I run the manual compression, I get the same:</p>
  
  <pre><code>$ git gc
  error: Could not read 3813783126d41a3200b35b6681357c213352ab31
  fatal: bad tree object 3813783126d41a3200b35b6681357c213352ab31
  error: failed to run repack
  </code></pre>
  
  <p>Does anyone know, what to do about that?</p>
  
  <p>From cat-file I get this: </p>
  
  <pre><code>$ git cat-file -t 3813783126d41a3200b35b6681357c213352ab31
  error: unable to find 3813783126d41a3200b35b6681357c213352ab31
  fatal: git cat-file 3813783126d41a3200b35b6681357c213352ab31: bad file
  </code></pre>
  
  <p>And from git fsck I get this ( don't know if it's actually related):</p>
  
  <pre><code>$ git fsck
  error: inflate: data stream error (invalid distance too far back)
  error: corrupt loose object '45ba4ceb93bc812ef20a6630bb27e9e0b33a012a'
  fatal: loose object 45ba4ceb93bc812ef20a6630bb27e9e0b33a012a (stored in .git/objects/45/ba4ceb93bc812ef20a6630bb27e9e0b33a012a) is corrupted
  </code></pre>
  
  <p>Can anyone help me decipher this?</p>