#NEWLINE# def test_clone_maint_branch( qisrc_action , git_server , tmpdir ) : #NEWLINE# #INDENT# git_server . create_repo ( 'foo.git' ) #NEWLINE# qisrc_action ( 'init' , git_server . manifest_url ) #NEWLINE# git_server . switch_manifest_branch ( 'maint' ) #NEWLINE# git_server . change_branch ( 'foo.git' , 'maint' ) #NEWLINE# work2 = tmpdir . join ( 'work2' ) . ensure ( dir = True ) #NEWLINE# qisrc_action . chdir ( work2 . strpath ) #NEWLINE# qisrc_action ( 'init' , git_server . manifest_url , '--branch' , 'maint' , '--clone' , qisrc_action . root )