Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Routing] Failing to execute git checkout (reference is not a tree) #6641

Closed
ghost opened this issue Jan 9, 2013 · 3 comments
Closed

[Routing] Failing to execute git checkout (reference is not a tree) #6641

ghost opened this issue Jan 9, 2013 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 9, 2013

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?

@fabpot
Copy link
Member

fabpot commented Jan 9, 2013

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.

@ghost
Copy link
Author

ghost commented Jan 9, 2013

Strange, but after a few trial and error steps I finally got it to work:

  1. Created a new folder + composer.json + install => worked without a problem
  2. Tried to resume installing with composer install in the project I first had this issue with => did not work
  3. Deleting the composer.lock + deleting the vendor directory finally did the trick (as it seems). Probably a caching thing.

Thanks.

@ghost ghost closed this as completed Jan 9, 2013
@behzad1q
Copy link

composer clear worked for me

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants