http: respect protocol.*.allow=user for http-alternates
[gitweb.git] / t / t5551-http-fetch-smart.sh
index 2f375eb94d528baefad038ff5b07baf0fe08d1fc..d8826acde69337a2ffab35aedc12a07d75d508e4 100755 (executable)
@@ -110,6 +110,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 &&