Skip to content

Commit 370a892

Browse files
committed
Auto merge of #8520 - alexcrichton:zlib-spurious, r=ehuss
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.
2 parents 25bc0df + 64d47cd commit 370a892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/util/network.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl<'a> Retry<'a> {
3636
fn maybe_spurious(err: &Error) -> bool {
3737
if let Some(git_err) = err.downcast_ref::<git2::Error>() {
3838
match git_err.class() {
39-
git2::ErrorClass::Net | git2::ErrorClass::Os => return true,
39+
git2::ErrorClass::Net | git2::ErrorClass::Os | git2::ErrorClass::Zlib => return true,
4040
_ => (),
4141
}
4242
}

0 commit comments

Comments
 (0)