def METHOD_NAME(bench_config, monkeypatch, make_project):
    rev = bench_config.project_rev
    url = bench_config.project_git_repo
    if os.path.isdir(url):
        path = url
        assert not rev
    else:
        path = make_project(url, rev=rev)
    monkeypatch.chdir(path)