def METHOD_NAME(tmp_path, monkeypatch):
    """Create a temporary Git repository and change current working directory into it"""
    repository = GitRepoFixture.create_repository(tmp_path)
    monkeypatch.chdir(tmp_path)
    # While `GitRepoFixture.create_repository()` already deletes `GIT_*` environment
    # variables for any Git commands run by the fixture, let's explicitly remove
    # `GIT_DIR` in case a test should call Git directly:
    monkeypatch.delenv("GIT_DIR", raising=False)
    yield repository
    fix_py37_win_tempdir_permissions(repository.root)