diff options
| author | Junio C Hamano <gitster@pobox.com> | 2017-01-17 14:49:29 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2017-01-17 14:49:29 -0800 |
| commit | 5ce6f51ff78bcb847c6c4835d80f6b58d730a8de (patch) | |
| tree | 029e49495079444591cb804fd4a12b39a34ab9ca /t/t5551-http-fetch-smart.sh | |
| parent | Merge branch 'jc/renormalize-merge-kill-safer-crlf' into maint (diff) | |
| parent | http-walker: complain about non-404 loose object errors (diff) | |
| download | git-5ce6f51ff78bcb847c6c4835d80f6b58d730a8de.tar.gz git-5ce6f51ff78bcb847c6c4835d80f6b58d730a8de.zip | |
Merge branch 'jk/http-walker-limit-redirect' into maint
Update the error messages from the dumb-http client when it fails
to obtain loose objects; we used to give sensible error message
only upon 404 but we now forbid unexpected redirects that needs to
be reported with something sensible.
* jk/http-walker-limit-redirect:
http-walker: complain about non-404 loose object errors
http: treat http-alternates like redirects
http: make redirects more obvious
remote-curl: rename shadowed options variable
http: always update the base URL for redirects
http: simplify update_url_from_redirect
Diffstat (limited to 't/t5551-http-fetch-smart.sh')
| -rwxr-xr-x | t/t5551-http-fetch-smart.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t5551-http-fetch-smart.sh b/t/t5551-http-fetch-smart.sh index 1ec5b2747a..6e5b9e42fb 100755 --- a/t/t5551-http-fetch-smart.sh +++ b/t/t5551-http-fetch-smart.sh @@ -119,6 +119,10 @@ test_expect_success 'redirects re-root further requests' ' git clone $HTTPD_URL/smart-redir-limited/repo.git repo-redir-limited ' +test_expect_success 're-rooting dies on insane schemes' ' + test_must_fail git clone $HTTPD_URL/insane-redir/repo.git insane +' + test_expect_success 'clone from password-protected repository' ' echo two >expect && set_askpass user@host pass@host && |
