title: Git pull bundle file gives 'fatal: Couldn't find remote ref HEAD'
body: <p>I'm posting a self-answer because I know some of my colleagues will be googling this soon. We sometimes need to distribute bundle files which are baselined on master and hence only contain the particular branches explicitly included when it was created. For example, the distributor does:</p>
  <pre><code>git bundle create ../file.gitbundle master..feature/aunit_reporters
  </code></pre>
  <p>The problem is, after receiving a bundle file, doing <code>git pull ../file.gitbundle</code> gives:</p>
  <pre><code>fatal: Couldn't find remote ref HEAD
  </code></pre>
  <p>I've verified the bundle file should be applicable, by:</p>
  <pre><code>git bundle verify ../file.gitbundle
  The bundle contains this ref:
  4f969119b208b71f4893222810600862 refs/heads/feature/aunit_reporters
  The bundle requires this ref:
  fd9801b79b56f5dd55ab1e6500f16daf
  </code></pre>
  <p>and <code>git show fd9801b79b56f5dd55ab1e6500f16daf</code> correctly displays the commit needed, instead of giving <code>fatal: ambiguous argument '[commit-hash]': unknown revision or path not in the working tree</code>, which would signal that I don't have the necessary baseline commit.</p>