

def test_removing_forked_project(qisrc_action, git_server):
    git_server.create_repo('booz')
    git_server.switch_manifest_branch('devel')
    git_server.change_branch('booz', 'devel')
    booz_proj('init', git_server.manifest_url, '--branch', 'devel')
    git_worktree = TestGitWorkTree()
    booz_proj = git_worktree.get_git_project('booz')
    git = qisrc.git.Git(booz_proj.path)
    assert (git.get_current_branch() == 'devel')
    git_server.change_branch('booz', 'master')
    qisrc_action('sync', '-a', retcode=True)
    qisrc_action('checkout', 'devel')
    assert (git.get_current_branch() == 'master')

dataset/ETHPy150Open aldebaran/qibuild/python/qisrc/test/test_qisrc_sync.py test_removing_forked_project/VarMisuse@35/67 `qisrc_action`->`booz_proj`