Sign in
cobalt
/
pre-commit-hooks
/
d1fac7f826abf3b3f32b0d3d71d25f743f1f7c46
/
.
/
tests
/
conftest.py
blob: f92cfc18f501cf7b11f8e536c0f5bf618b79b894 [
file
] [
log
] [
blame
]
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