ERROR: could not checkout revision
mallorydxw opened this issue · 1 comments
mallorydxw commented
% rm -rf wp-content/plugins/wp-idea-stream
% git clone git@git.dxw.net: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 commented
I can only think of a destructive way to handle this ... Which would be (In this case):
- Check commit exists in
git@git.dxw.net:wordpress-plugins/wp-idea-stream
- Check commit exists in
wp-content/plugins/wp-idea-stream
repo - If it exists in
git@git.dxw.net:wordpress-plugins/wp-idea-stream
but notwp-content/plugins/wp-idea-stream
, removewp-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 ...