When I use “git clone https://github.com/smartdevicelink/sdl_core.git” on ubuntu16.04 ,
the error occured as following:

1
2
3
4
5
remote: Compressing objects: 100% (7/7), done.
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed

I solved this problem with the help of 《error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.》 ,thx.

Just run the following command to enlarge the cache:

git config --global http.postBuffer 524288000

If the error occured again, to enlarge it bigger again.

The another solution worked for me is to use ssh protocol instead of http(s) protocol.

OR use “repo” method instead of “git”

或者就是网络不好!!!

On Git-config page says:
http.postBuffer
Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests.

reference:
http.postBuffer