Git 克隆 : index-pack died of signal 25

标签 git github version-control

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

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

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

我已经尝试过的,
  • 在不同的机器上克隆同一个 repo;结果:成功
  • 克隆具有较低深度的 repo --depth=1 ;结果:成功

  • 观察
  • 存储库似乎有很多提交
  • 由于克隆在另一台机器上工作,问题应该与出现问题的计算机有关。

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

  • 我已经搜索过类似的问题,这些问题可能有 index-pack died of signal 25但找不到解决方案。

    最佳答案

    根据 man 7 signal , 信号 25 是 SIGXFSZ , 意思是“超出文件大小限制”。 man 2 setrlimit 说这个:

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

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

    关于Git 克隆 : index-pack died of signal 25,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61400182/

    相关文章:

    svn - 部署版本的源代码控制问题

    git:如何查看分支中所做的更改

    Gitlab committer's email does "X"不遵循模式 "Y",但 git email config 为 "X"

    git 远程 url 自动重置

    git - 将当前更改放在新的 Git 分支中

    ios - 开发人员如何共享Xcode ios项目?

    git - 如何找到哪个提交添加了一行代码..?

    linux - Git 错误 : gpg failed to sign the data on Linux

    git - GitHub repos 上的最佳实践,用于 fork 或创建新分支

    svn - 我们使用的最佳源代码控制(以及如何说服人们使用它?)