{"record":{"id":"567471ebf2d84b9b","repo":"BigPizzaV3/CodexPlusPlus","slug":"cannot-run-remote-git-over-ssh-error","errorCode":null,"errorMessage":"Cannot run remote git over SSH: {error}","messagePattern":"Cannot run remote git over SSH: (.+?)","errorType":"exception","errorClass":"std::io::Error","httpStatus":null,"severity":"error","filePath":"crates/codex-plus-core/src/upstream_worktree/remote.rs","lineNumber":103,"sourceCode":"    RemoteGitCommand {\n        destination: ssh_destination(target),\n        port: target.port,\n        command: remote_command,\n    }\n}\n\nfn spawn_remote_git(command_spec: &RemoteGitCommand) -> Result<GitOutput, std::io::Error> {\n    let mut command = Command::new(\"ssh\");\n    command.arg(\"-o\").arg(\"BatchMode=yes\");\n    command.arg(\"-o\").arg(\"ConnectTimeout=8\");\n    if let Some(port) = command_spec.port {\n        command.arg(\"-p\").arg(port.to_string());\n    }\n    command\n        .arg(&command_spec.destination)\n        .arg(&command_spec.command);\n    let output = command.output().map_err(|error| {\n        std::io::Error::new(\n            error.kind(),\n            format!(\"Cannot run remote git over SSH: {error}\"),\n        )\n    })?;\n    Ok(GitOutput {\n        status_success: output.status.success(),\n        stdout: String::from_utf8_lossy(&output.stdout).trim().to_string(),\n        stderr: String::from_utf8_lossy(&output.stderr).trim().to_string(),\n    })\n}\n\nfn remote_git(project: &UpstreamRemoteProject, args: &[&str]) -> UpstreamWorktreeResult<GitOutput> {\n    let target = resolve_ssh_target_for_host_id(&project.host_id, None).map_err(|error| {\n        UpstreamWorktreeError::new(UpstreamWorktreeCode::GitMissing, error.to_string())\n    })?;\n    let command_spec = remote_git_command(project, &target, args);\n    let output = spawn_remote_git(&command_spec).map_err(|error| {\n        UpstreamWorktreeError::new(UpstreamWorktreeCode::GitMissing, error.to_string())","sourceCodeStart":85,"sourceCodeEnd":121,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/1f431ae49b57b3055e0e6845ba6156c6b4232b4d/crates/codex-plus-core/src/upstream_worktree/remote.rs#L85-L121","documentation":"Error \"Cannot run remote git over SSH: {error}\" thrown in BigPizzaV3/CodexPlusPlus.","triggerScenarios":"Thrown at crates/codex-plus-core/src/upstream_worktree/remote.rs:103 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1f431ae49b57b3055e0e6845ba6156c6b4232b4d","analyzedAt":"2026-08-16T20:54:18.598Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}