frewsxcv / rust-crates-index

Rust library for retrieving and interacting with the crates.io index
https://docs.rs/crates-index/
Apache License 2.0
72 stars 37 forks source link

fix: assure Git index updates to refs are actually written. #161

Closed Byron closed 8 months ago

Byron commented 8 months ago

The remote git repository may alter its references in such a way that local fast-forwards aren't possible anymore.

This happens regularly as the history will be squashed on the remote.

Now we forcefully store the updated references, which resolves the issue that calling update() didn't seem to do anything despite being busy (i.e. downloading a possibly huge pack, and resolving it).