submodule init: initialize active submodules
[gitweb.git] / t / t5550-http-fetch-dumb.sh
index b69ece1d66f2b076ff94904dc7fddb7c7c1c88c5..87308cdced9af11365d5eb0644b9ac86fac21177 100755 (executable)
@@ -387,5 +387,14 @@ test_expect_success 'http-alternates triggers not-from-user protocol check' '
                clone $HTTPD_URL/dumb/evil.git evil-user
 '
 
+test_expect_success 'can redirect through non-"info/refs?service=git-upload-pack" URL' '
+       git clone "$HTTPD_URL/redir-to/dumb/repo.git"
+'
+
+test_expect_success 'print HTTP error when any intermediate redirect throws error' '
+       test_must_fail git clone "$HTTPD_URL/redir-to/502" 2> stderr &&
+       test_i18ngrep "unable to access.*/redir-to/502" stderr
+'
+
 stop_httpd
 test_done