summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-08-09 01:40:08 -0700
committerJunio C Hamano <gitster@pobox.com>2008-08-09 01:40:08 -0700
commit0bb3a0ba9e3cbb283a747e4736bcf7484d076a73 (patch)
tree8e922c74687a8f335ea422a0eb9643a54d0d8c9b /transport.c
parenta9fd1383a73878284d4157b20ac7c735e876102e (diff)
parent0f4f4d1597219bad74c4fde624321d8a05d1b55e (diff)
downloadgit-0bb3a0ba9e3cbb283a747e4736bcf7484d076a73.tar.gz
Merge branch 'maint'
* maint: asciidoc markup fixes Fail properly when cloning from invalid HTTP URL Conflicts: Documentation/git-push.txt
Diffstat (limited to 'transport.c')
-rw-r--r--transport.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/transport.c b/transport.c
index 6eb65b873a..71433d9997 100644
--- a/transport.c
+++ b/transport.c
@@ -463,17 +463,14 @@ static struct ref *get_refs_via_curl(struct transport *transport)
run_active_slot(slot);
if (results.curl_result != CURLE_OK) {
strbuf_release(&buffer);
- if (missing_target(&results)) {
- return NULL;
- } else {
- error("%s", curl_errorstr);
- return NULL;
- }
+ if (missing_target(&results))
+ die("%s not found: did you run git update-server-info on the server?", refs_url);
+ else
+ die("%s download error - %s", refs_url, curl_errorstr);
}
} else {
strbuf_release(&buffer);
- error("Unable to start request");
- return NULL;
+ die("Unable to start HTTP request");
}
data = buffer.buf;