

@pytest.fixture
def repository(request, tmpdir):
    cwd = os.getcwd()
    request.addfinalizer((lambda : os.chdir(tmpdir)))
    os.chdir(str(tmpdir))
    cmd('git init')

dataset/ETHPy150Open wosc/git-persona/src/ws/gitpersona/tests/test_persona.py repository/VarMisuse@36/39 `cwd`->`tmpdir`