mirror of
https://github.com/rust-lang/cargo
synced 2024-10-06 15:59:39 +00:00
Write invalid data when cloning to force an abort
Otherwise it seems libgit2 isn't ready to handle premature eof? Unclear...
This commit is contained in:
parent
dfda6f3b39
commit
a1e442e06f
|
@ -2205,7 +2205,9 @@ fn failed_submodule_checkout() {
|
|||
|
||||
let t = thread::spawn(move || {
|
||||
while !done2.load(Ordering::SeqCst) {
|
||||
drop(listener.accept());
|
||||
if let Ok((mut socket, _)) = listener.accept() {
|
||||
drop(socket.write_all(b"foo\r\n"));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue