title: Git clone : error inflate data stream error (incorrect header check)
body: <p>We are currently in the process of migrating from ClearCase to Git and we are facing a problem when trying to clone the Git repositories we have created.</p>
  
  <p>Repositories were created with a 1.9.x version of Git, but I'm trying to clone them with git version 2.9.2.windows.1. Apparently, the person who created the repositories manages to clone them with his old version of Git.</p>
  
  <p>The errors I'm seeing are the following when running a git clone:</p>
  
  <pre><code>$ git clone /d/Users/T0111869/Desktop/migr_SRC/history/COM_CORE
  Cloning into 'COM_CORE'...
  done.
  error: inflate: data stream error (incorrect header check)
  fatal: failed to read object b7ed8076ca4334f1d7337ac81a00d6fe7c2e793b: Invalid argument
  warning: Clone succeeded, but checkout failed.
  You can inspect what was checked out with 'git status'
  and retry the checkout with 'git checkout -f HEAD'
  </code></pre>
  
  <p>If I try what is suggested by the error message, I get this:</p>
  
  <pre><code>$ git status
  error: inflate: data stream error (incorrect header check)
  error: unable to unpack fb43c36b2de8ccab73a648a25ab5735406e1b595 header
  error: inflate: data stream error (incorrect header check)
  fatal: loose object fb43c36b2de8ccab73a648a25ab5735406e1b595 (stored in .git/objects/fb/43c36b2de8ccab73a648a25ab5735406e1b595) is corrupt
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>$ git checkout -f HEAD
  error: inflate: data stream error (incorrect header check)
  error: unable to unpack fb43c36b2de8ccab73a648a25ab5735406e1b595 header
  error: inflate: data stream error (incorrect header check)
  fatal: loose object fb43c36b2de8ccab73a648a25ab5735406e1b595 (stored in .git/objects/fb/43c36b2de8ccab73a648a25ab5735406e1b595) is corrupt
  </code></pre>
  
  <p>Does anyone have a suggestion on how to understand what's going on and how to overcome this problem ?</p>
  
  <p>Thanks in advance
  Nico</p>