BigPizzaV3/CodexPlusPlus · error · std::io::Error
Cannot run remote git over SSH: {error}
Error message
Cannot run remote git over SSH: {error} What it means
Error "Cannot run remote git over SSH: {error}" thrown in BigPizzaV3/CodexPlusPlus.
Source
Thrown at crates/codex-plus-core/src/upstream_worktree/remote.rs:103
RemoteGitCommand {
destination: ssh_destination(target),
port: target.port,
command: remote_command,
}
}
fn spawn_remote_git(command_spec: &RemoteGitCommand) -> Result<GitOutput, std::io::Error> {
let mut command = Command::new("ssh");
command.arg("-o").arg("BatchMode=yes");
command.arg("-o").arg("ConnectTimeout=8");
if let Some(port) = command_spec.port {
command.arg("-p").arg(port.to_string());
}
command
.arg(&command_spec.destination)
.arg(&command_spec.command);
let output = command.output().map_err(|error| {
std::io::Error::new(
error.kind(),
format!("Cannot run remote git over SSH: {error}"),
)
})?;
Ok(GitOutput {
status_success: output.status.success(),
stdout: String::from_utf8_lossy(&output.stdout).trim().to_string(),
stderr: String::from_utf8_lossy(&output.stderr).trim().to_string(),
})
}
fn remote_git(project: &UpstreamRemoteProject, args: &[&str]) -> UpstreamWorktreeResult<GitOutput> {
let target = resolve_ssh_target_for_host_id(&project.host_id, None).map_err(|error| {
UpstreamWorktreeError::new(UpstreamWorktreeCode::GitMissing, error.to_string())
})?;
let command_spec = remote_git_command(project, &target, args);
let output = spawn_remote_git(&command_spec).map_err(|error| {
UpstreamWorktreeError::new(UpstreamWorktreeCode::GitMissing, error.to_string())View on GitHub (pinned to 1f431ae49b)
When it happens
Trigger: Thrown at crates/codex-plus-core/src/upstream_worktree/remote.rs:103 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BigPizzaV3/CodexPlusPlus@1f431ae49b (2026-08-16).
Data as JSON: /api/errors/567471ebf2d84b9b.
Report an issue: GitHub.