Skip to content

Commit

Permalink
Auto merge of #8520 - alexcrichton:zlib-spurious, r=ehuss
Browse files Browse the repository at this point in the history
Flag git zlib errors as spurious errors

This may be a bad band-aid for now, but the goal is to help
address #8517 where this has been showing up in the wild quite a lot.
  • Loading branch information
bors committed Jul 23, 2020
2 parents 25bc0df + 64d47cd commit 370a892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/util/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl<'a> Retry<'a> {
fn maybe_spurious(err: &Error) -> bool {
if let Some(git_err) = err.downcast_ref::<git2::Error>() {
match git_err.class() {
git2::ErrorClass::Net | git2::ErrorClass::Os => return true,
git2::ErrorClass::Net | git2::ErrorClass::Os | git2::ErrorClass::Zlib => return true,
_ => (),
}
}
Expand Down

0 comments on commit 370a892

Please sign in to comment.