(command.CommandList children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:test_description spids:[12]) op: Equal rhs: {(SQ <'refspec parsing'>)} spids: [12] ) ] spids: [12] ) (C {(.)} {(./test-lib.sh)}) (command.FuncDef name: test_refspec body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:kind spids:[31]) op: Equal rhs: {($ VSub_Number '$1')} spids: [31] ) (assign_pair lhs: (lhs_expr.LhsName name:refspec spids:[34]) op: Equal rhs: {($ VSub_Number '$2')} spids: [34] ) (assign_pair lhs: (lhs_expr.LhsName name:expect spids:[37]) op: Equal rhs: {($ VSub_Number '$3')} spids: [37] ) ] spids: [31] ) (command.AndOr ops: [Op_DAmp Op_DAmp Op_DAmp Op_DAmp] children: [ (C {(git)} {(config)} {(remote.frotz.url)} {(DQ (.))}) (C {(git)} {(config)} {(--remove-section)} {(remote.frotz)}) (C {(git)} {(config)} {(remote.frotz.url)} {(DQ (.))}) (C {(git)} {(config)} {(DQ (remote.frotz.) ($ VSub_Name '$kind'))} {(DQ ($ VSub_Name '$refspec'))} ) (command.If arms: [ (if_arm cond: [ (C {(test)} {(DQ ($ VSub_Name '$expect'))} {(KW_Bang '!') (Lit_Other '=')} {(invalid)} ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:title spids:[111]) op: Equal rhs: {(DQ ($ VSub_Name '$kind') (' ') ($ VSub_Name '$refspec'))} spids: [111] ) ] spids: [111] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:test spids:[119]) op: Equal rhs: {(SQ <'git ls-remote frotz'>)} spids: [119] ) ] spids: [119] ) ] spids: [16777215 108] ) ] else_action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:title spids:[128]) op: Equal rhs: { (DQ ($ VSub_Name '$kind') (' ') ($ VSub_Name '$refspec') (' (invalid)')) } spids: [128] ) ] spids: [128] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:test spids:[137]) op: Equal rhs: {(SQ <'test_must_fail git ls-remote frotz'>)} spids: [137] ) ] spids: [137] ) ] spids: [125 143] ) ] ) (C {(test_expect_success)} {(DQ ($ VSub_Name '$title'))} {(DQ ($ VSub_Name '$test'))}) ] spids: [28] ) spids: [23 27] ) (C {(test_refspec)} {(push)} {(SQ )} {(invalid)}) (C {(test_refspec)} {(push)} {(SQ <':'>)}) (C {(test_refspec)} {(push)} {(SQ <'::'>)} {(invalid)}) (C {(test_refspec)} {(push)} {(SQ <'+:'>)}) (C {(test_refspec)} {(fetch)} {(SQ )}) (C {(test_refspec)} {(fetch)} {(SQ <':'>)}) (C {(test_refspec)} {(fetch)} {(SQ <'::'>)} {(invalid)}) (C {(test_refspec)} {(push)} {(SQ <'refs/heads/*:refs/remotes/frotz/*'>)}) (C {(test_refspec)} {(push)} {(SQ <'refs/heads/*:refs/remotes/frotz'>)} {(invalid)}) (C {(test_refspec)} {(push)} {(SQ <'refs/heads:refs/remotes/frotz/*'>)} {(invalid)}) (C {(test_refspec)} {(push)} {(SQ <'refs/heads/master:refs/remotes/frotz/xyzzy'>)}) (C {(Lit_Other ':')} {(test_refspec)} {(push)} {(SQ <'refs/heads/master::refs/remotes/frotz/xyzzy'>)} {(invalid)} ) (C {(Lit_Other ':')} {(test_refspec)} {(push)} {(SQ <'refs/heads/maste :refs/remotes/frotz/xyzzy'>)} {(invalid)} ) (C {(test_refspec)} {(fetch)} {(SQ <'refs/heads/*:refs/remotes/frotz/*'>)}) (C {(test_refspec)} {(fetch)} {(SQ <'refs/heads/*:refs/remotes/frotz'>)} {(invalid)}) (C {(test_refspec)} {(fetch)} {(SQ <'refs/heads:refs/remotes/frotz/*'>)} {(invalid)}) (C {(test_refspec)} {(fetch)} {(SQ <'refs/heads/master:refs/remotes/frotz/xyzzy'>)}) (C {(test_refspec)} {(fetch)} {(SQ <'refs/heads/master::refs/remotes/frotz/xyzzy'>)} {(invalid)}) (C {(test_refspec)} {(fetch)} {(SQ <'refs/heads/maste :refs/remotes/frotz/xyzzy'>)} {(invalid)}) (C {(test_refspec)} {(push)} {(SQ <'master~1:refs/remotes/frotz/backup'>)}) (C {(test_refspec)} {(fetch)} {(SQ <'master~1:refs/remotes/frotz/backup'>)} {(invalid)}) (C {(test_refspec)} {(push)} {(SQ <'HEAD~4:refs/remotes/frotz/new'>)}) (C {(test_refspec)} {(fetch)} {(SQ <'HEAD~4:refs/remotes/frotz/new'>)} {(invalid)}) (C {(test_refspec)} {(push)} {(SQ <HEAD>)}) (C {(test_refspec)} {(fetch)} {(SQ <HEAD>)}) (C {(test_refspec)} {(push)} {(SQ <'refs/heads/ nitfol'>)} {(invalid)}) (C {(test_refspec)} {(fetch)} {(SQ <'refs/heads/ nitfol'>)} {(invalid)}) (C {(test_refspec)} {(push)} {(SQ <'HEAD:'>)} {(invalid)}) (C {(test_refspec)} {(fetch)} {(SQ <'HEAD:'>)}) (C {(test_refspec)} {(push)} {(SQ <'refs/heads/ nitfol:'>)} {(invalid)}) (C {(test_refspec)} {(fetch)} {(SQ <'refs/heads/ nitfol:'>)} {(invalid)}) (C {(test_refspec)} {(push)} {(SQ <':refs/remotes/frotz/deleteme'>)}) (C {(test_refspec)} {(fetch)} {(SQ <':refs/remotes/frotz/HEAD-to-me'>)}) (C {(test_refspec)} {(push)} {(SQ <':refs/remotes/frotz/delete me'>)} {(invalid)}) (C {(test_refspec)} {(fetch)} {(SQ <':refs/remotes/frotz/HEAD to me'>)} {(invalid)}) (C {(test_refspec)} {(fetch)} {(SQ <'refs/heads/*/for-linus:refs/remotes/mine/*-blah'>)}) (C {(test_refspec)} {(push)} {(SQ <'refs/heads/*/for-linus:refs/remotes/mine/*-blah'>)}) (C {(test_refspec)} {(fetch)} {(SQ <'refs/heads*/for-linus:refs/remotes/mine/*'>)}) (C {(test_refspec)} {(push)} {(SQ <'refs/heads*/for-linus:refs/remotes/mine/*'>)}) (C {(test_refspec)} {(fetch)} {(SQ <'refs/heads/*/*/for-linus:refs/remotes/mine/*'>)} {(invalid)}) (C {(test_refspec)} {(push)} {(SQ <'refs/heads/*/*/for-linus:refs/remotes/mine/*'>)} {(invalid)}) (C {(test_refspec)} {(fetch)} {(SQ <'refs/heads/*g*/for-linus:refs/remotes/mine/*'>)} {(invalid)}) (C {(test_refspec)} {(push)} {(SQ <'refs/heads/*g*/for-linus:refs/remotes/mine/*'>)} {(invalid)}) (C {(test_refspec)} {(fetch)} {(SQ <'refs/heads/*/for-linus:refs/remotes/mine/*'>)}) (C {(test_refspec)} {(push)} {(SQ <'refs/heads/*/for-linus:refs/remotes/mine/*'>)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:good spids:[597]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(printf)} {(SQ <'\\303\\204'>)})]) left_token: <Left_CommandSub '$('> spids: [598 604] ) } spids: [597] ) ] spids: [597] ) (C {(test_refspec)} {(fetch)} {(DQ (refs/heads/) (${ VSub_Name good))}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:bad spids:[617]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children:[(C {(printf)} {(SQ <'\\011tab'>)})]) left_token: <Left_CommandSub '$('> spids: [618 624] ) } spids: [617] ) ] spids: [617] ) (C {(test_refspec)} {(fetch)} {(DQ (refs/heads/) (${ VSub_Name bad))} {(invalid)}) (C {(test_done)}) ] )