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

ERROR: could not checkout revision #81

Open
mallorydxw opened this issue Aug 17, 2016 · 1 comment
Open

ERROR: could not checkout revision #81

mallorydxw opened this issue Aug 17, 2016 · 1 comment

Comments

@mallorydxw
Copy link
Contributor

% rm -rf wp-content/plugins/wp-idea-stream
% git clone [email protected]:wordpress-plugins/polldaddy wp-content/plugins/wp-idea-stream
% whippet deploy
[Checking plugins/wp-idea-stream]
fatal: reference is not a tree: 6cd1bbb7ffd05205272846d244102c95f52e1358
Checkout failed:

ERROR: could not checkout revision

Evidently whippet deploy is using the existing cloned repos. It should handle the case where the existing repo is outdated or broken in some way.

@Stretch96
Copy link
Member

I can only think of a destructive way to handle this ... Which would be (In this case):

  • Check commit exists in [email protected]:wordpress-plugins/wp-idea-stream
  • Check commit exists in wp-content/plugins/wp-idea-stream repo
  • If it exists in [email protected]:wordpress-plugins/wp-idea-stream but not wp-content/plugins/wp-idea-stream, remove wp-content/plugins/wp-idea-stream and reclone?

Though it could be a dev environment, and removing directories from someone's project may not be the best idea ...

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

No branches or pull requests

2 participants