Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
remote: Flush to stdin when writing to sftp 2 (#42126)
Lukas Wirth2d45c23fb0da
diff --git a/crates/remote/src/transport/ssh.rs b/crates/remote/src/transport/ssh.rsindex a8e4245b435..433c4b017aa 100644--- a/crates/remote/src/transport/ssh.rs+++ b/crates/remote/src/transport/ssh.rs@@ -306,7 +306,7 @@ impl RemoteConnection for SshRemoteConnection {use futures::AsyncWriteExt;let sftp_batch = format!("put -r {src_path_display} {dest_path_str}\n");stdin.write_all(sftp_batch.as_bytes()).await?;- drop(stdin);+ stdin.flush().await?;}let output = child.output().await?;