summaryrefslogtreecommitdiff
path: root/remote-curl.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-06-16 23:32:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-06-16 23:32:15 (GMT)
commit356169c1f66287629ea08e8c9c6e27b00ff8707a (patch)
treedbcaccfc020329501fb6eaa9c84c06e5d4ab7bf6 /remote-curl.c
parent3b3b9a6152a9458718119aa27db52248bf8df911 (diff)
parent42653c09c85015addc6fa8dd4d49cb250253412e (diff)
downloadgit-356169c1f66287629ea08e8c9c6e27b00ff8707a.zip
git-356169c1f66287629ea08e8c9c6e27b00ff8707a.tar.gz
git-356169c1f66287629ea08e8c9c6e27b00ff8707a.tar.bz2
Merge branch 'sc/http-late-auth' into maint
* sc/http-late-auth: Prompt for a username when an HTTP request 401s
Diffstat (limited to 'remote-curl.c')
-rw-r--r--remote-curl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote-curl.c b/remote-curl.c
index 9c7fcf2..24fbb9a 100644
--- a/remote-curl.c
+++ b/remote-curl.c
@@ -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");