X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5551-http-fetch.sh;h=26d355725f5e8d317c71cb466ea091ec8f741d63;hb=d3334d9c444a22847e7add0f60c2e4a7243c151e;hp=7faa31a299f263b0628d4a23e4500d3e43e0fdda;hpb=aa8b12505b4b8365ba96236a0e7698959063765e;p=git.git diff --git a/t/t5551-http-fetch.sh b/t/t5551-http-fetch.sh index 7faa31a29..26d355725 100755 --- a/t/t5551-http-fetch.sh +++ b/t/t5551-http-fetch.sh @@ -4,7 +4,7 @@ test_description='test smart fetching over http via http-backend' . ./test-lib.sh if test -n "$NO_CURL"; then - say 'skipping test, git built without http support' + skip_all='skipping test, git built without http support' test_done fi @@ -101,5 +101,13 @@ test_expect_success 'used upload-pack service' ' test_cmp exp act ' +test_expect_success 'follow redirects (301)' ' + git clone $HTTPD_URL/smart-redir-perm/repo.git --quiet repo-p +' + +test_expect_success 'follow redirects (302)' ' + git clone $HTTPD_URL/smart-redir-temp/repo.git --quiet repo-t +' + stop_httpd test_done