Skip to content

Commit c21c47e

Browse files
remote: Flush to stdin when writing to sftp 2 (#42126) (cherry-pick to preview) (#42187)
Cherry-pick of #42126 to preview ---- #42103 (comment) Release Notes: - N/A *or* Added/Fixed/Improved ... Co-authored-by: Lukas Wirth <[email protected]>
1 parent 92142fc commit c21c47e

File tree

1 file changed

+1
-1
lines changed
  • crates/remote/src/transport

1 file changed

+1
-1
lines changed

crates/remote/src/transport/ssh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ impl RemoteConnection for SshRemoteConnection {
306306
use futures::AsyncWriteExt;
307307
let sftp_batch = format!("put -r {src_path_display} {dest_path_str}\n");
308308
stdin.write_all(sftp_batch.as_bytes()).await?;
309-
drop(stdin);
309+
stdin.flush().await?;
310310
}
311311

312312
let output = child.output().await?;

0 commit comments

Comments
 (0)