5

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/pull code.

I can push my project code onto the server but when I do a clone or pull, it returns a [fatal: early EOFs] error at about 75-80%.

Upon further investigation, it seems like textual data has no issue when pulled/cloned but when the jar files and images are pulled from Git, the error will occur.

Any suggestion/advice that can help to resolve this issue?

Thanks in advance.

Style
  • 155
  • 1
  • 1
  • 9

6 Answers6

6

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

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 1
    Sorry to reply so late, the solution seems to be due to how I log into the repository. Previously I was using "git+ssh://". When I changed to log in using "ssh://" followed by git command, the error is gone :) – Style Apr 07 '10 at 16:21
  • @Style: thank you for the feedback. I have update my answer to reflect the root cause you mention. – VonC Apr 07 '10 at 18:47
  • 1
    most welcome :) I want to mark your answer as useful but not enough reputation points >< But I'm really amazed and loving the community here. Nice to meet you! Stack overflow rocks, Git too ;) – Style Apr 08 '10 at 02:22
4

@rickb I found that running

git config --add core.compression -1

in the client (cygwin) repository fixed it.

Druid
  • 6,423
  • 4
  • 41
  • 56
Voket
  • 331
  • 2
  • 2
3

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

Matt Bryant
  • 4,841
  • 4
  • 31
  • 46
GermanF
  • 51
  • 4
1

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

Sverre
  • 11
  • 1
0

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

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

Community
  • 1
  • 1
Mohammad AlQanneh
  • 3,227
  • 1
  • 16
  • 14
0

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

Tim Abell
  • 11,186
  • 8
  • 79
  • 110