mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 18:16:52 +00:00
10 lines
209 B
Python
10 lines
209 B
Python
import pytest
|
|
|
|
from pre_commit_hooks.util import cmd_output
|
|
|
|
|
|
@pytest.fixture
|
|
def temp_git_dir(tmpdir):
|
|
git_dir = tmpdir.join('gits')
|
|
cmd_output('git', 'init', '--', git_dir.strpath)
|
|
yield git_dir
|