{"record":{"id":"754159e1a25ffe7c","repo":"sxyazi/yazi","slug":"git-command-failed-status","errorCode":null,"errorMessage":"`git` command failed: {status}","messagePattern":"`git` command failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"yazi-cli/src/package/git.rs","lineNumber":115,"sourceCode":"\t\t\t\"-c\",\n\t\t\t\"core.eol=lf\",\n\t\t\t\"-c\",\n\t\t\t\"core.autocrlf=false\",\n\t\t\t\"-c\",\n\t\t\t\"core.symlinks=false\",\n\t\t\t\"-c\",\n\t\t\t\"clone.defaultRemoteName=origin\",\n\t\t\t\"-c\",\n\t\t\t\"checkout.defaultRemote=origin\",\n\t\t\t\"-c\",\n\t\t\t\"advice.detachedHead=false\",\n\t\t]))\n\t\t.status()\n\t\t.await\n\t\t.context(\"Failed to execute `git` command\")?;\n\n\t\tif !status.success() {\n\t\t\tbail!(\"`git` command failed: {status}\");\n\t\t}\n\n\t\tOk(())\n\t}\n}\n","sourceCodeStart":97,"sourceCodeEnd":121,"githubUrl":"https://github.com/sxyazi/yazi/blob/5f901b886b14de1f17460b6e52e9de5d67f8aba9/yazi-cli/src/package/git.rs#L97-L121","documentation":"Generic status guard at the end of git command execution (`exec`): the git subprocess ran to completion but returned a non-zero exit status. The specific git subcommand is opaque here; consult the preceding `.args()` and git's stderr for the real cause (network failure, bad ref, permission error, etc.).","triggerScenarios":"Thrown at yazi-cli/src/package/git.rs:115 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-run the same git command manually to see its stderr output.","Check network access and credentials for remote operations (clone/fetch).","Ensure the refs requested (e.g. origin/HEAD) exist in the repository."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5f901b886b14de1f17460b6e52e9de5d67f8aba9","analyzedAt":"2026-09-02T18:38:25.566Z","contentChangedAt":"2026-09-02T18:38:25.566Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}