-
Notifications
You must be signed in to change notification settings - Fork 151
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: The repo at path ... is unusable due to having an invalid HEAD reference #879
Comments
This happened to me today too. See #869, #841. A workaround is described in #869. I fixed this for myself by:
* If I'm reading the issues right, I am pretty sure the issue only occurs when you have a cargo install that has only ever used sparse checkouts - so you're probably not deleting any data that would take a long time to re-fetch. The cargo fetch in step 2 will still take a long time. But if the problem is as described in the issues listed above, you wouldn't have had that data locally in the first place. |
Same error. Error gone, after changing from Search related problems, found related rust-lang/cargo#12425. |
Also encountered this issue, deleting the |
When I run
cargo-upgrade upgrade
I get:Apparently this was caused by me Ctrl-C-in a previous run of
cargo-upgrade upgrade
that seemed to have been stuck (not showing anything for more than a minute) After removing that folder and runningcargo-upgrade upgrade
again (and Ctrl-C-ing again) I get the same error.The text was updated successfully, but these errors were encountered: