summaryrefslogtreecommitdiff
path: root/contrib/examples/git-fetch.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2012-08-27 09:26:04 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-08-27 10:49:09 -0700
commit88097030725bf68d1801559cfb4785b93a50f5f8 (patch)
treefe19d92b0bff8efd61a6ae98b67025ab7814dd35 /contrib/examples/git-fetch.sh
parentt: test http access to "half-auth" repositories (diff)
downloadtgif-88097030725bf68d1801559cfb4785b93a50f5f8.tar.xz
http: factor out http error code handling
Most of our http requests go through the http_request() interface, which does some nice post-processing on the results. In particular, it handles prompting for missing credentials as well as approving and rejecting valid or invalid credentials. Unfortunately, it only handles GET requests. Making it handle POSTs would be quite complex, so let's pull result handling code into its own function so that it can be reused from the POST code paths. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/examples/git-fetch.sh')
0 files changed, 0 insertions, 0 deletions