7

When I try to clone the repository from TFS, I ended up with the below error :

Cloning into 'Repo'...
error: RPC failed; curl 56 Illegal or missing hexadecimal sequence in chunked-encoding
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

Tried many solutions by increasing buffer size but none of them worked for me.

Ajay2707
  • 5,690
  • 6
  • 40
  • 58
suresh
  • 125
  • 1
  • 2
  • 9
  • First time I see such error, can you share more info, e.g. version for involved software (TFS, Git, OS), protocol and authentication used, definition of remotes... – Giulio Vian May 17 '16 at 13:48
  • TFS2013 is the remote repository with latest git installed locally. More than 1K commits have been done with no issues but now it throws the above error while cloning. Git clone/pull throws the same error but some times it shows there is a bad offset. – suresh May 17 '16 at 13:56
  • Does it work when you clone from Visual Studio? (which doesn't rely on the Git client)... – jessehouwing May 17 '16 at 13:59
  • No it doesn't...same error. Does it occur because of some bad commits? – suresh May 17 '16 at 19:36

4 Answers4

6

I had the same problem while commiting/pushing and The remote end hung up unexpectedly while git cloning helped by raising the buffer with a command like

git config --global http.postBuffer 524288000
tardis
  • 1,280
  • 3
  • 23
  • 48
2

There is a similar error during Git clone process Git Clone Fails - error: RPC failed; result=56, HTTP code = 200 Please try the solution in the link.

Execute the following in the command line before executing the Git command:

1  set GIT_TRACE_PACKET=1

2  set GIT_TRACE=1

3  set GIT_CURL_VERBOSE=1
PatrickLu-MSFT
  • 49,478
  • 5
  • 35
  • 62
1

The problem is maybe the type of compression used, try different type of compression :

git config --global core.compression 1

or

git config --global core.compression 9

or

git config --global core.compression 0

or

git config --global core.compression 6

Chances are one of thoses will solve your problem

ezzou
  • 2,348
  • 1
  • 15
  • 16
1

For me what worked is, as this error may occur for memory requirement of git.

I have added these lines to my global git configuration file .gitconfig which is present in $USER_HOME

i.e C:\Users\<USER_NAME>\.gitconfig

[core] 
packedGitLimit = 512m 
packedGitWindowSize = 512m 
[pack] 
deltaCacheSize = 2047m 
packSizeLimit = 2047m 
windowMemory = 2047m
Vipul Patil
  • 1,250
  • 15
  • 27