Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Make remote mkdir shell-independent for compatibility (#32997)
marton csutora014f93008a3d
diff --git a/crates/remote/src/ssh_session.rs b/crates/remote/src/ssh_session.rsindex 660e5627807..ffcf3b37834 100644--- a/crates/remote/src/ssh_session.rs+++ b/crates/remote/src/ssh_session.rs@@ -1805,7 +1805,16 @@ impl SshRemoteConnection {) -> Result<()> {if let Some(parent) = tmp_path_gz.parent() {self.socket- .run_command("mkdir", &["-p", &parent.to_string_lossy()])+ .run_command(+ "sh",+ &[+ "-c",+ &shell_script!(+ "mkdir -p {parent}",+ parent = parent.to_string_lossy().as_ref()+ ),+ ],+ ).await?;}@@ -1877,7 +1886,16 @@ impl SshRemoteConnection {) -> Result<()> {if let Some(parent) = tmp_path_gz.parent() {self.socket- .run_command("mkdir", &["-p", &parent.to_string_lossy()])+ .run_command(+ "sh",+ &[+ "-c",+ &shell_script!(+ "mkdir -p {parent}",+ parent = parent.to_string_lossy().as_ref()+ ),+ ],+ ).await?;}