X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=t%2Ft5551-http-fetch.sh;h=afb439e09c2db4853c6eba88a1e630f319337cf8;hb=a3a9cff0371f5dd3dd199ef227911cd812e1708d;hp=f036392c295830c66cdb4b0ec37afd623e7d5549;hpb=94221d22036f36e10680c0a1e7eafb4bceeb1248;p=thirdparty%2Fgit.git diff --git a/t/t5551-http-fetch.sh b/t/t5551-http-fetch.sh index f036392c29..afb439e09c 100755 --- a/t/t5551-http-fetch.sh +++ b/t/t5551-http-fetch.sh @@ -113,6 +113,10 @@ test_expect_success 'follow redirects (302)' ' git clone $HTTPD_URL/smart-redir-temp/repo.git --quiet repo-t ' +test_expect_success 'redirects re-root further requests' ' + git clone $HTTPD_URL/smart-redir-limited/repo.git repo-redir-limited +' + test_expect_success 'clone from password-protected repository' ' echo two >expect && set_askpass user@host && @@ -146,6 +150,13 @@ test_expect_success 'no-op half-auth fetch does not require a password' ' expect_askpass none ' +test_expect_success 'redirects send auth to new location' ' + set_askpass user@host && + git -c credential.useHttpPath=true \ + clone $HTTPD_URL/smart-redir-auth/repo.git repo-redir-auth && + expect_askpass both user@host auth/smart/repo.git +' + test_expect_success 'disable dumb http on server' ' git --git-dir="$HTTPD_DOCUMENT_ROOT_PATH/repo.git" \ config http.getanyfile false