remote-curl: consistently report repo url for http errors
commitd5ccbe4dfb43d95d1d04252490fcd200e6aa5759
authorJeff King <peff@peff.net>
Fri, 5 Apr 2013 22:21:14 +0000 (5 18:21 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 7 Apr 2013 01:56:43 +0000 (6 18:56 -0700)
tree699809f2108cf46c92d429110a43b45cfcbada29
parentcfa0f4040dd1885fbcdd3d306c1defe22d0fee00
remote-curl: consistently report repo url for http errors

When we report http errors in fetching the initial ref
advertisement, we show the full URL we attempted to use,
including "info/refs?service=git-upload-pack". While this
may be useful for debugging a broken server, it is
unnecessarily verbose and confusing for most cases, in which
the client user is not even the same person as the owner of
the repository.

Let's just show the repository URL; debugging can happen
with GIT_CURL_VERBOSE, which shows way more useful
information, anyway.

At the same time, let's also make sure to mention the
repository URL when we report failed authentication
(previously we said only "Authentication failed"). Knowing
the URL can help the user realize why authentication failed
(e.g., they meant to push to remote A, not remote B).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote-curl.c