Hanging at “POST git-receive-pack (chunked)”

前端 未结 5 763
轻奢々
轻奢々 2020-12-07 14:39

I will be honest, I know very little about the internals of git.

I have staged and commit a 40mb directory, but when I come to push...

$ git push --v         


        
5条回答
  •  再見小時候
    2020-12-07 15:25

    With Git 2.13 (Q2 2017), you will be able to set http.postBuffer to a really large number (i.e, larger than ulong on some platforms).

    See commit 37ee680 (11 Apr 2017) by David Turner (csusbdt).
    (Merged by Junio C Hamano -- gitster -- in commit 4c01f67, 24 Apr 2017)

    http.postbuffer: allow full range of ssize_t values

    Unfortunately, in order to push some large repos where a server does not support chunked encoding, the http postbuffer must sometimes exceed two gigabytes.
    On a 64-bit system, this is OK: we just malloc a larger buffer.

    This means that we need to use CURLOPT_POSTFIELDSIZE_LARGE to set the buffer size.

提交回复
热议问题