nabijaczleweli / cargo-update

A cargo subcommand for checking and applying updates to installed executables
MIT License
1.22k stars 42 forks source link

Panic when updating git package "reference \'refs/heads/master\' not found" #143

Closed fmckeogh closed 4 years ago

fmckeogh commented 4 years ago

probe-run installed with:

$ cargo install \
        --git https://github.com/knurling-rs/probe-run \
        --branch main \
        --features defmt

cargo install-update -ag then panics with:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { code: -9, klass: 4, message: "reference \'refs/heads/master\' not found" }', /Users/ferdiamckeogh/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-update-4.1.1/src/ops/mod.rs:436:31
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
nabijaczleweli commented 4 years ago

Can you try with the current master branch (at least 52256cc768ecdff4376cdf3b84a846af374f0772)? That fixed it for me.

fmckeogh commented 4 years ago

All working, thank you so much!:)

nabijaczleweli commented 4 years ago

Delightful! Released as v4.1.2.