diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2011-10-04 16:20:19 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-04 19:11:50 -0700 |
commit | 6cdf0223fe4a9ccae543fece8b5e78a626ccdf89 (patch) | |
tree | 02358dc60d30c071f5a7132425fd2465bce0444f /git-sh-setup.sh | |
parent | Git 1.7.5 (diff) | |
download | tgif-6cdf0223fe4a9ccae543fece8b5e78a626ccdf89.tar.xz |
remote-curl: Fix warning after HTTP failure
If the HTTP connection is broken in the middle of a fetch or clone
body, the client presented a useless error message due to part of
the upload-pack->remote-curl pkt-line protocol leaking out of the
helper as the helper's "fetch result":
error: RPC failed; result=18, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed
warning: https unexpectedly said: '0000'
Instead when the HTTP RPC fails discard all remaining data from
upload-pack and report nothing to the transport helper. Errors
were already sent to stderr.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-sh-setup.sh')
0 files changed, 0 insertions, 0 deletions