blob: f92cfc18f501cf7b11f8e536c0f5bf618b79b894 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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', '--', str(git_dir))
yield git_dir
|