(List (= scope= flags=0 words=[] bindings=[('test_description', {[SQ ]})]) (Com {[LIT_CHARS .]} {[LIT_CHARS ./test-lib.sh]} ) (If (Com {[LIT_CHARS test]} {[LIT_CHARS -n]} {[DQ [VarSub NO_CURL]]} ) (List (= scope= flags=0 words=[] bindings=[('skip_all', {[SQ ]})]) (Com {[LIT_CHARS test_done]} ) ) ) (= scope= flags=0 words=[] bindings=[('ROOT_PATH', {[DQ [VarSub PWD]]})]) (= scope= flags=0 words=[] bindings=[('LIB_HTTPD_PORT', {[VarSub LIB_HTTPD_PORT test_op=VS_TEST_HYPHEN {[LIT_CHARS "'5541'"]}]})]) (Com {[LIT_CHARS .]} {[DQ [VarSub TEST_DIRECTORY]] [LIT_CHARS /lib-httpd.sh]} ) (Com {[LIT_CHARS .]} {[DQ [VarSub TEST_DIRECTORY]] [LIT_CHARS /lib-terminal.sh]} ) (Com {[LIT_CHARS start_httpd]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ path1 &&\n"> ]} ) (Com {[LIT_CHARS setup_askpass_helper]} ) (Com {[LIT_CHARS cat]} < (FilenameRedirectNode filename={[LIT_CHARS exp]} "> 1), (HereDocRedirectNode here_end='EOF' do_expansion=True body_word={[DQ [LIT_CHARS "GET /smart/test_repo.git/info/refs?service=git-upload-pack HTTP/1.1 200\n"][LIT_CHARS "POST /smart/test_repo.git/git-upload-pack HTTP/1.1 200\n"]]} 0), > ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ act <\"$HTTPD_ROOT_PATH\"/access.log &&\n"> \"$HTTPD_ROOT_PATH\"/access.log &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ path2 &&\n"> err &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ path3 &&\n"> ]} ) (Com {[LIT_CHARS cat]} < (FilenameRedirectNode filename={[DQ [VarSub HTTPD_DOCUMENT_ROOT_PATH][LIT_CHARS /test_repo.git/hooks/update]]} "> 1), (HereDocRedirectNode here_end='EOF' do_expansion=True body_word={[DQ [LIT_CHARS "#!/bin/sh\n"][LIT_CHARS "exit 1\n"]]} 0), > ) (Com {[LIT_CHARS chmod]} {[LIT_CHARS a] [LIT_OTHER "+"] [LIT_CHARS x]} {[DQ [VarSub HTTPD_DOCUMENT_ROOT_PATH][LIT_CHARS /test_repo.git/hooks/update]]} ) (Com {[LIT_CHARS cat]} < (FilenameRedirectNode filename={[LIT_CHARS exp]} "> 1), (HereDocRedirectNode here_end='EOF' do_expansion=True body_word={[DQ [LIT_CHARS "remote: error: hook declined to update refs/heads/dev2\n"][LIT_CHARS "To http://127.0.0.1:"][VarSub LIB_HTTPD_PORT][LIT_CHARS "/smart/test_repo.git\n"][LIT_CHARS " ! [remote rejected] dev2 -> dev2 (hook declined)\n"][LIT_CHARS "error: failed to push some refs to 'http://127.0.0.1:"][VarSub LIB_HTTPD_PORT][LIT_CHARS "/smart/test_repo.git'\n"]]} 0), > ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ path4 &&\n"> act &&\n"> cmp &&\n"> ]} ) (Com {[LIT_CHARS rm]} {[LIT_CHARS -f]} {[DQ [VarSub HTTPD_DOCUMENT_ROOT_PATH][LIT_CHARS /test_repo.git/hooks/update]]} ) (Com {[LIT_CHARS cat]} < (FilenameRedirectNode filename={[LIT_CHARS exp]} "> 1), (HereDocRedirectNode here_end='EOF' do_expansion=True body_word={[DQ [LIT_CHARS "\n"][LIT_CHARS "GET /smart/test_repo.git/info/refs?service=git-upload-pack HTTP/1.1 200\n"][LIT_CHARS "POST /smart/test_repo.git/git-upload-pack HTTP/1.1 200\n"][LIT_CHARS "GET /smart/test_repo.git/info/refs?service=git-receive-pack HTTP/1.1 200\n"][LIT_CHARS "POST /smart/test_repo.git/git-receive-pack HTTP/1.1 200\n"][LIT_CHARS "GET /smart/test_repo.git/info/refs?service=git-receive-pack HTTP/1.1 200\n"][LIT_CHARS "GET /smart/test_repo.git/info/refs?service=git-receive-pack HTTP/1.1 200\n"][LIT_CHARS "POST /smart/test_repo.git/git-receive-pack HTTP/1.1 200\n"][LIT_CHARS "GET /smart/test_repo.git/info/refs?service=git-receive-pack HTTP/1.1 200\n"][LIT_CHARS "POST /smart/test_repo.git/git-receive-pack HTTP/1.1 200\n"][LIT_CHARS "GET /smart/test_repo.git/info/refs?service=git-receive-pack HTTP/1.1 200\n"][LIT_CHARS "POST /smart/test_repo.git/git-receive-pack HTTP/1.1 200\n"]]} 0), > ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ act <\"$HTTPD_ROOT_PATH\"/access.log &&\n"> ]} ) (Com {[LIT_CHARS test_http_push_nonff]} {[DQ [VarSub HTTPD_DOCUMENT_ROOT_PATH]] [LIT_CHARS /test_repo.git]} {[DQ [VarSub ROOT_PATH]] [LIT_CHARS /test_repo_clone]} {[LIT_CHARS master]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ path2 &&\n"> ] [DQ [LIT_CHARS "'push'"]] [SQ output 2>&1">]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ master (forced update)$\" output &&\n"> retsam (non-fast-forward)$\" output\n">]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ err &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ ]} ) (Com {[LIT_CHARS test_expect_success]} {[LIT_CHARS TTY]} {[SQ ]} {[SQ output 2>&1 &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[LIT_CHARS TTY]} {[SQ ]} {[SQ output 2>&1 &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[LIT_CHARS TTY]} {[SQ ]} {[SQ output 2>&1 &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ output 2>&1 &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ \" >actual &&\n"> \" >expect &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ \" >actual &&\n"> \" >expect &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ expect &&\n"> actual &&\n"> ]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ ]} {[SQ expect &&\n"> actual &&\n"> ]} ) (Com {[LIT_CHARS stop_httpd]} ) (Com {[LIT_CHARS test_done]} ) )