add tests for rebasing root
[gitweb.git] / remote-curl.c
index 083efdf77639bb1480895abddc95ae39f4e5d16a..60eda6308197ad3d0b5957b9ae34e2dc15dfe5cc 100644 (file)
@@ -209,17 +209,14 @@ static struct discovery* discover_refs(const char *service, int for_push)
        case HTTP_OK:
                break;
        case HTTP_MISSING_TARGET:
-               if (!show_http_message(&type, &buffer))
-                       die("repository '%s' not found", url);
-               die("%s not found: did you run git update-server-info on the"
-                   " server?", refs_url);
+               show_http_message(&type, &buffer);
+               die("repository '%s' not found", url);
        case HTTP_NOAUTH:
                show_http_message(&type, &buffer);
-               die("Authentication failed");
+               die("Authentication failed for '%s'", url);
        default:
                show_http_message(&type, &buffer);
-               http_error(refs_url, http_ret);
-               die("HTTP request failed");
+               die("unable to access '%s': %s", url, curl_errorstr);
        }
 
        last= xcalloc(1, sizeof(*last_discovery));