Git checking out problem [fatal: early EOFs]

后端 未结 6 707
星月不相逢
星月不相逢 2020-12-02 00:26

I\'m running a Ubuntu (9.10) server with Git (latest from Ubuntu package manager) installed. Access to the Git is via SSH. On windows machines, I\'m using Cygwin to push/pul

相关标签:
6条回答
  • 2020-12-02 01:01

    git config --global --add core.compression -1

    0 讨论(0)
  • 2020-12-02 01:09

    What is the Git version are you using (Ubuntu 9.10 packages mentions 1.6.3)

    A recent thread reported a similar issue with Git1.7.1, although it was from a Cygwin environment.

    $ git clone git:/repo/git/acl acl.test
      Initialized empty Git repository in /c/tmp/acl.test/.git/
      remote: Counting objects: 9205, done.
      remote: Compressing objects: 100% (3300/3300), done.
      fatal: The remote end hung up unexpectedly
      fatal: early EOFs:  62% (5708/9205)
      fatal: index-pack failed
    

    Did you try downgrade your Git (on the server side and/or the client side) and see if the problem persists?


    As the OP Style reports in the comments, the message can also be trigger by an incorrect protocol:

    git+ssh://
    

    instead of just:

    ssh:// + git command

    0 讨论(0)
  • 2020-12-02 01:19

    @rickb I found that running

    git config --add core.compression -1
    

    in the client (cygwin) repository fixed it.

    0 讨论(0)
  • 2020-12-02 01:20

    Try msysgit. I had the same issue with cygwin's git, and when I fetched the same repository using msysgit it worked first time.

    See also this thread: http://cygwin.com/ml/cygwin/2010-09/msg00832.html

    0 讨论(0)
  • 2020-12-02 01:23

    For some reason, the problem went away after I enabled Compression in the ~/.ssh/config file. God knows why.

    0 讨论(0)
  • 2020-12-02 01:25

    Checkout this answer: https://stackoverflow.com/a/6849424

    also you can try: git config --global core.compression 0 tp disable the compressions.

    0 讨论(0)
提交回复
热议问题