Skip to content

Commit 9010f58

Browse files
committed
fix: gix::env::fetch::collate::Error now considers negotiation errors a sign of corrupt git repos.
Indeed, all of these negotiation errors are due to failures reading references or objects that ought to be there.
1 parent fd2593c commit 9010f58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gix/src/env.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ pub mod collate {
119119
Error::Fetch(
120120
crate::remote::fetch::Error::PackThreads(_)
121121
| crate::remote::fetch::Error::PackIndexVersion(_)
122-
| crate::remote::fetch::Error::RemovePackKeepFile { .. },
122+
| crate::remote::fetch::Error::RemovePackKeepFile { .. }
123+
| crate::remote::fetch::Error::Negotiate(_),
123124
) => true,
124125
_ => false,
125126
}

0 commit comments

Comments
 (0)