(command.CommandList children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:test_description) op: Equal rhs: {(SQ <'test disabling of git-over-http in clone/fetch'>)} ) ] ) (C {(.)} {(./test-lib.sh)}) (C {(.)} {(DQ ($ VSub_DollarName '$TEST_DIRECTORY') (/lib-proto-disable.sh))}) (C {(.)} {(DQ ($ VSub_DollarName '$TEST_DIRECTORY') (/lib-httpd.sh))}) (C {(start_httpd)}) (C {(test_expect_success)} {(SQ <'create git-accessible repo'>)} { (SQ <'\n'> <'\tbare="$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&\n'> <'\ttest_commit one &&\n'> <'\tgit --bare init "$bare" &&\n'> <'\tgit push "$bare" HEAD &&\n'> <'\tgit -C "$bare" config http.receivepack true\n'> ) } ) (C {(test_proto)} {(DQ ('smart http'))} {(http)} {(DQ ($ VSub_DollarName '$HTTPD_URL') (/smart/repo.git))} ) (C {(test_expect_success)} {(SQ <'curl redirects respect whitelist'>)} { (SQ <'\n'> <'\ttest_must_fail env GIT_ALLOW_PROTOCOL=http:https \\\n'> <'\t\tgit clone "$HTTPD_URL/ftp-redir/repo.git" 2>stderr &&\n'> <'\t{\n'> <'\t\ttest_i18ngrep "ftp.*disabled" stderr ||\n'> <'\t\ttest_i18ngrep "your curl version is too old"\n'> <'\t}\n'> ) } ) (C {(test_expect_success)} {(SQ <'curl limits redirects'>)} {(SQ <'\n'> <'\ttest_must_fail git clone "$HTTPD_URL/loop-redir/smart/repo.git"\n'>)} ) (C {(stop_httpd)}) (C {(test_done)}) ] )