

def test_keeps_staged_changes(qisrc_action, git_server):
    git_server.create_repo('foo.git')
    qisrc_action('init', git_server.manifest_url)
    qisrc_action('sync')
    git_worktree = TestGitWorkTree()
    foo = git_worktree.get_git_project('foo')
    test_git = TestGit(foo.path)
    staged_file = os.path.join(foo.path, 'staged')
    with open(staged_file, 'w') as f:
        f.write("I'm going to stage stuff")
    test_git.add(git_worktree)
    foo.sync()
    assert os.path.exists(staged_file)

dataset/ETHPy150Open aldebaran/qibuild/python/qisrc/test/test_qisrc_sync.py test_keeps_staged_changes/VarMisuse@96/170 `staged_file`->`git_worktree`