修复git凭证的使用问题

This commit is contained in:
xintaofei
2026-03-21 16:49:48 +08:00
parent 51e9d15c8e
commit 44f812c8d2
2 changed files with 35 additions and 4 deletions

View File

@@ -84,6 +84,7 @@ async fn prepare_remote_git_cmd_for_url(
/// Classify a git remote command error, detecting authentication failures.
fn classify_remote_git_error(operation: &str, stderr: &[u8]) -> AppCommandError {
let msg = String::from_utf8_lossy(stderr).trim().to_string();
eprintln!("[GIT_CMD] {} failed, stderr: {}", operation, msg);
let lower = msg.to_lowercase();
if lower.contains("authentication failed")