mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-01 22:40:22 -06:00
10 lines
187 B
Python
10 lines
187 B
Python
|
|
import pytest
|
|
from plumbum import local
|
|
|
|
|
|
@pytest.yield_fixture
|
|
def empty_git_dir(tmpdir):
|
|
with local.cwd(tmpdir.strpath):
|
|
local['git']['init']()
|
|
yield tmpdir.strpath |