Git 克隆:索引包因信号 25 而死亡

Ire*_*aka 5 git version-control github

当我尝试克隆特定存储库时,显示以下错误消息。仅当克隆该存储库时才会发生这种情况。

remote: Enumerating objects: 991, done.
remote: Counting objects: 100% (991/991), done.
remote: Compressing objects: 100% (422/422), done.
error: index-pack died of signal 25, 60.96 MiB | 5.56 MiB/s
fatal: index-pack failed
Run Code Online (Sandbox Code Playgroud)

环境:CentOS Linux 7 x86_64,可用内存约1.9G。

我已经尝试过的,

  • 在不同的机器上克隆相同的存储库;结果:成功
  • 以较低深度克隆存储库--depth=1;结果:成功

观察结果

  • 存储库似乎有很多提交
  • 由于克隆在另一台计算机上有效,因此问题应该与发生问题的计算机有关。

问题:

  1. 这是什么index-pack died of signal 25意思?我在哪里可以找到它的文档?这与 Git 本身或操作系统有关吗?
  2. 我该如何解决?

我搜索过类似的问题,index-pack died of signal 25但没有找到解决方案。

Jos*_*ica 2

根据man 7 signal,信号 25 为SIGXFSZ,表示“超出文件大小限制”。man 2 setrlimit说:

\n\n
       RLIMIT_FSIZE\n              This is the maximum size in bytes of files that the process\n              may create.  Attempts to extend a file beyond this limit\n              result in delivery of a SIGXFSZ signal.  By default, this sig\xe2\x80\x90\n              nal terminates a process, but a process can catch this signal\n              instead, in which case the relevant system call (e.g.,\n              write(2), truncate(2)) fails with the error EFBIG.\n
Run Code Online (Sandbox Code Playgroud)\n\n

您可以使用该ulimit命令查看并可能更改此限制。

\n