diff --git a/src-tauri/src/commands/terminal.rs b/src-tauri/src/commands/terminal.rs index d2dfc7b..07e2e1a 100644 --- a/src-tauri/src/commands/terminal.rs +++ b/src-tauri/src/commands/terminal.rs @@ -62,9 +62,11 @@ async fn prepare_credential_env( "GIT_CONFIG_KEY_0".to_string(), "credential.helper".to_string(), ); + // Git parses credential.helper values using shell rules, so paths with + // spaces (e.g. "Application Support") must be quoted. env.insert( "GIT_CONFIG_VALUE_0".to_string(), - helper_path_str, + format!("\"{}\"", helper_path_str), ); let files = TerminalCredFiles {