明明是在git仓库目录下,ocr review却报错git show failed #203
-
ocr review -commit xxxx (报错如下)Error: review failed: load diffs: get diffs: git show failed: exit status 128 |
Beta Was this translation helpful? Give feedback.
Answered by
lizhengfeng101
Jun 24, 2026
Replies: 1 comment 4 replies
-
|
先检查一下你的git工具吧。#18 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@XueWuQianKun Hi,
git show failed: exit status 128错误通常由以下原因之一引起:Hi, the
git show failed: exit status 128error is typically caused by one of the following:1. Git 版本过旧(最可能) / Git version too old (most likely)
OCR 在调用
git show时使用了--end-of-options参数,该参数需要 Git 2.24+(2019年底发布)。如果你的 Git 版本低于此,命令会直接报 exit status 128 —— 即使普通的git show/git log命令能正常工作(因为它们不使用--end-of-options)。OCR uses the
--end-of-optionsflag when callinggit show, which requires Git 2.24+ (released late 2019). If your Git version is older, the command will fail with exit status 128 — even though normalgit show/git logcommands work fine (since they don't use--end-of-options).请检查你的 Git 版本 / Please check your Git ve…