{"record":{"id":"99d96ecdc6cad783","repo":"openai/codex","slug":"git-command-command-produced-non-utf-8-output","errorCode":null,"errorMessage":"git command `{command}` produced non-UTF-8 output","messagePattern":"git command `(.+?)` produced non-UTF-8 output","errorType":"exception","errorClass":"GitToolingError","httpStatus":null,"severity":"error","filePath":"codex-rs/git-utils/src/errors.rs","lineNumber":17,"sourceCode":"use std::path::PathBuf;\nuse std::process::ExitStatus;\nuse std::string::FromUtf8Error;\n\nuse thiserror::Error;\nuse walkdir::Error as WalkdirError;\n\n/// Errors returned while managing git worktree snapshots.\n#[derive(Debug, Error)]\npub enum GitToolingError {\n    #[error(\"git command `{command}` failed with status {status}: {stderr}\")]\n    GitCommand {\n        command: String,\n        status: ExitStatus,\n        stderr: String,\n    },\n    #[error(\"git command `{command}` produced non-UTF-8 output\")]\n    GitOutputUtf8 {\n        command: String,\n        #[source]\n        source: FromUtf8Error,\n    },\n    #[error(\"{path:?} is not a git repository\")]\n    NotAGitRepository { path: PathBuf },\n    #[error(\"path {path:?} must be relative to the repository root\")]\n    NonRelativePath { path: PathBuf },\n    #[error(\"path {path:?} escapes the repository root\")]\n    PathEscapesRepository { path: PathBuf },\n    #[error(\"failed to process path inside worktree\")]\n    PathPrefix(#[from] std::path::StripPrefixError),\n    #[error(transparent)]\n    Walkdir(#[from] WalkdirError),\n    #[error(transparent)]\n    Io(#[from] std::io::Error),\n}","sourceCodeStart":1,"sourceCodeEnd":35,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/git-utils/src/errors.rs#L1-L35","documentation":"Error \"git command `{command}` produced non-UTF-8 output\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/git-utils/src/errors.rs:17 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":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}