Prompt for a username when an HTTP request 401s
[gitweb.git] / remote-curl.c
index b76bfcb3d3cdbbee2e3279a6696c7d6b526176d7..07827562b56e38be543201f80e77ea581f9428f3 100644 (file)
@@ -132,6 +132,8 @@ static struct discovery* discover_refs(const char *service)
        case HTTP_MISSING_TARGET:
                die("%s not found: did you run git update-server-info on the"
                    " server?", refs_url);
+       case HTTP_NOAUTH:
+               die("Authentication failed");
        default:
                http_error(refs_url, http_ret);
                die("HTTP request failed");