From 6e2ae6fb36d430a6a8744d3903329ca80026c641 Mon Sep 17 00:00:00 2001 From: xintaofei Date: Sat, 21 Mar 2026 15:53:38 +0800 Subject: [PATCH] Release version 0.2.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 非活跃连接在 1 分钟内没有活动就会被自动断开; 临时会话被顶替后立即断开连接; 设置界面支持版本控制、github账号管理、Git服务器管理; 增强git凭据处理,现在需要认证时会弹框来支持凭据自动处理。 --- src-tauri/src/commands/terminal.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/commands/terminal.rs b/src-tauri/src/commands/terminal.rs index 07e2e1a..61fe2ce 100644 --- a/src-tauri/src/commands/terminal.rs +++ b/src-tauri/src/commands/terminal.rs @@ -62,11 +62,12 @@ 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. + // credential.helper values without '!' prefix get "git-credential-" prepended. + // The '!' prefix tells git to run it as a raw shell command. + // Paths with spaces (e.g. "Application Support") must be quoted. env.insert( "GIT_CONFIG_VALUE_0".to_string(), - format!("\"{}\"", helper_path_str), + format!("!\"{}\"", helper_path_str), ); let files = TerminalCredFiles {