http-push: improve error log
authorPatryk Obara <patryk.obara@gmail.com>
Wed, 24 Jan 2018 11:11:53 +0000 (12:11 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Jan 2018 21:42:23 +0000 (13:42 -0800)
commita2b9820ceccf2065a3d3d347e9b1cf7834f5e146
tree4982bc02cc5495407c4f95faee46defc88f118f8
parent8279ed033f703d4115bee620dccd32a9ec94d9aa
http-push: improve error log

When git push fails due to server-side WebDAV error, it's not easy to
point to the main culprit.  Additional information about exact cURL
error and HTTP server response is helpful for debugging purpose.

New error log helped me pinpoint failing test t5540-http-push-webdav
to a missing Apache dependency in Fedora 27:
https://bugzilla.redhat.com/show_bug.cgi?id=1491151

Signed-off-by: Patryk Obara <patryk.obara@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c