title: Composer install history re-written error
body: <p>When I try and run composer install I am seeing the following error for my project:</p>
  
  <pre><code>Installing symfony/yaml (dev-master 8bae579)
  Downloading
  Failed to download symfony/yaml from dist: Could not authenticate against github.com
  Now trying to download from source
  - Installing symfony/yaml (dev-master 8bae579)
  Cloning 8bae579c7afa252c055855f071c751eb75dcf6c4
  8bae579c7afa252c055855f071c751eb75dcf6c4 is gone (history was rewritten?)
  </code></pre>
  
  <p>When I clone the repo manually to a separate directory and found that I could not do:</p>
  
  <pre><code>git checkout 8bae579c7afa252c055855f071c751eb75dcf6c4
  </code></pre>
  
  <p>It does not exist! So okay that makes some sense,</p>
  
  <p><strong>HOWEVER</strong></p>
  
  <p>The commit can be found still on github.com though here:</p>
  
  <p><a href="https://github.com/symfony/yaml/commit/8bae579c7afa252c055855f071c751eb75dcf6c4" rel="nofollow">https://github.com/symfony/yaml/commit/8bae579c7afa252c055855f071c751eb75dcf6c4</a></p>
  
  <p>Also github caches the zip of the commit so you can still download the zip here:</p>
  
  <p><a href="https://api.github.com/repos/symfony/yaml/zipball/0047c8366744a16de7516622c5b7355336afae96" rel="nofollow">https://api.github.com/repos/symfony/yaml/zipball/0047c8366744a16de7516622c5b7355336afae96</a></p>
  
  <p><strong>With that in mind why does composer still complain its missing?</strong></p>
  
  <p>The relevant section of my composer.lock file is below for reference:</p>
  
  <pre><code>    {
          "name": "symfony/yaml",
          "version": "dev-master",
          "source": {
              "type": "git",
              "url": "https://github.com/symfony/yaml.git",
              "reference": "0047c8366744a16de7516622c5b7355336afae96"
          },
          "dist": {
              "type": "zip",
              "url": "https://api.github.com/repos/symfony/yaml/zipball/0047c8366744a16de7516622c5b7355336afae96",
              "reference": "0047c8366744a16de7516622c5b7355336afae96",
              "shasum": ""
          },
          "require": {
              "php": "&gt;=5.5.9"
          },
          "type": "library",
          "extra": {
              "branch-alias": {
                  "dev-master": "3.0-dev"
              }
          },
          "autoload": {
              "psr-4": {
                  "Symfony\\Component\\Yaml\\": ""
              },
              "exclude-from-classmap": [
                  "/Tests/"
              ]
          },
          "notification-url": "https://packagist.org/downloads/",
          "license": [
              "MIT"
          ],
          "authors": [
              {
                  "name": "Fabien Potencier",
                  "email": "fabien@symfony.com"
              },
              {
                  "name": "Symfony Community",
                  "homepage": "https://symfony.com/contributors"
              }
          ],
          "description": "Symfony Yaml Component",
          "homepage": "https://symfony.com",
          "time": "2015-12-05 11:13:35"
      },
  </code></pre>