I am using Laravel 4 which depends on "symfony/routing" v. 2.2.*. When using composer to install my dependencies I get this message:
- Installing symfony/routing (dev-master 87a6689)
Cloning 87a66890450658ccac99702ac5e4f002ece9e23e
[RuntimeException]
Failed to execute git checkout '87a66890450658ccac99702ac5e4f002ece9e23e' && git reset --hard '87a66890450658ccac99702ac5e4f002ece9e23e'
fatal: reference is not a tree: 87a66890450658ccac99702ac5e4f002ece9e23e
I've read that this can happen when using git push --force so that the repo and packagist are "out of sync". Any thoughts?
That's weird as Composer should be able to fix that by itself. I've force the update of the metadata on packagist, it should be fixed now.
Strange, but after a few trial and error steps I finally got it to work:
Thanks.
composer clear
worked for me
Most helpful comment
composer clear
worked for me