Git - BUG:refs/files-backend.c:465:返回非零 -1,应该设置 myerr!在分行主

Git - BUG: refs/files-backend.c:465: returning non-zero -1, should have set myerr! On branch main

我已经将一些文件复制粘贴到我的 git 目录中,当我 运行 命令 git status 时,它给了我这条错误消息。

BUG: refs/files-backend.c:465: returning non-zero -1, should have set myerr!
On branch main

当我使用 git restore . 恢复所有内容时,消息仍然存在。

我试图找出这个错误的含义,但我没有找到任何东西。

release 2.35.1(2) seems to fix this issue, through PR 3678

上下文:issue 3655 and issue 3674(评论中提到最后一个)。

A bug in FSCache

commit 5437f0f

In fscache_lstat(), we did not set errno upon a cache miss (which indicates that the item did not exist at the time the lstat() values were cached), and therefore we now trigger this problem all the time.

Let's set errno=ENOENT when no entry was found.