From c8df5ed2daf6095597a20339b579d30d46fb86f1 Mon Sep 17 00:00:00 2001 From: Maokaman1 Date: Fri, 28 Nov 2025 10:18:19 +0300 Subject: [PATCH] askpass: Use double quotes for script name in helper command (#43689) Replace single quotes with double quotes when referencing the askpass script name in the helper command. The Windows command processor (cmd.exe) requires double quotes for proper string handling, as single quotes are treated as literal characters. Error I get when trying to open remote project: image ``` Zed Nightly 0.216.0 23880c9c461e7c0073ba6118c6a98612518c58b9 0.216.0+nightly.1965.23880c9c461e7c0073ba6118c6a98612518c58b9 ``` Release Notes: - N/A --- crates/askpass/src/askpass.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/askpass/src/askpass.rs b/crates/askpass/src/askpass.rs index 8e911f1654..ab4474aa62 100644 --- a/crates/askpass/src/askpass.rs +++ b/crates/askpass/src/askpass.rs @@ -257,7 +257,7 @@ impl PasswordProxy { // todo(shell): There might be no powershell on the system #[cfg(target_os = "windows")] let askpass_helper = format!( - "powershell.exe -ExecutionPolicy Bypass -File '{}'", + "powershell.exe -ExecutionPolicy Bypass -File \"{}\"", askpass_script_path.display() );