8

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.

4
  • 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... Commented May 17, 2016 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
    Commented May 17, 2016 at 13:56
  • Does it work when you clone from Visual Studio? (which doesn't rely on the Git client)... Commented May 17, 2016 at 13:59
  • No it doesn't...same error. Does it occur because of some bad commits?
    – suresh
    Commented May 17, 2016 at 19:36

4 Answers 4

7

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
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
0
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

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.