title: How to fix git repository broken by interrupted git fetch?
body: <p>If <code>git fetch</code> gets interrupted for example by Ctrl-C or caused by connectivity problems, after that <code>git fetch</code> and also <code>git pull</code> fail to work.</p>
  
  <pre><code>user@computer:~/code/openttd-git$ git fetch
  ^C
  user@computer:~/code/openttd-git$ git fetch
  error: Unable to find 22d90742fc79a9011fb86ee03d8aeea66bc12657 under http://git.openttd.org/openttd/trunk.git
  Cannot obtain needed object 22d90742fc79a9011fb86ee03d8aeea66bc12657
  error: Fetch failed.
  </code></pre>
  
  <p>I believe this is not related to the repository. Using <code>git clone</code> to create a copy of this broken local repository into a new local repository does not fix this. The only solution I know so far is to <code>git clone</code> the entire remote repository (<code>origin/master</code>) into a new local repository. But is there any better (faster) solution?</p>
  
  <p>There is <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602528">Debian bug report</a> that has last message from February 2011. Is this the same bug I have or is there already a fix or any solution or workaround to this? My git version is 1.7.10.</p>