Cygwin git fork() error on pull

前端 未结 5 1018
猫巷女王i
猫巷女王i 2021-02-01 04:54

The basic problem is that sometimes when I do

git pull upstream master

I get

remote: Counting objects: 172, done.
remote: Comp         


        
5条回答
  •  暖寄归人
    2021-02-01 05:15

    OK, I guess I should share. I have the same problem, but I have a workaround. The problem seems to be the length of the PATH. If I do a git pull, I get the fork failure:

    $ git pull*emphasized text*
          2 [main] git 7384 fork: child -1 - forked process 7420 died unexpectedly, retry 0, exit code -1073741515, errno 11
    error: cannot fork() for rev-list: Resource temporarily unavailable
    error: Could not run 'git rev-list'
    remote: Counting objects: 728, done.
    remote: Compressing objects: 100% (456/456), done.
     907550 [main] git 7384 fork: child -1 - forked process 7436 died unexpectedly, retry 0, exit code -1073741515, errno 11
    error: cannot fork() for index-pack: Resource temporarily unavailable
    fatal: fetch-pack: unable to fork off index-pack
    

    However, if I set the PATH to something really small before running git, it works:

    $ PATH=/usr/bin git pull
    remote: Counting objects: 728, done.
    remote: Compressing objects: 100% (456/456), done.
    remote: Total 464 (delta 337), reused 9 (delta 6)
    Receiving objects: 100% (464/464), 153.36 KiB, done.
    Resolving deltas: 100% (337/337), completed with 107 local objects.
    From git://cmake.org/cmake
    

    I would be interested if it works for any of you?

提交回复
热议问题