Sign in
cobalt
/
pre-commit-hooks
/
172a87e6a8454f2f35d0c2e6875141d3f97a0325
/
.
/
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