mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Use in_git_dir in more places
This commit is contained in:
parent
2af0b0b4f3
commit
d46bbc486f
7 changed files with 88 additions and 143 deletions
|
|
@ -65,9 +65,10 @@ def in_tmpdir(tempdir_factory):
|
|||
|
||||
@pytest.fixture
|
||||
def in_git_dir(tmpdir):
|
||||
with tmpdir.as_cwd():
|
||||
repo = tmpdir.join('repo').ensure_dir()
|
||||
with repo.as_cwd():
|
||||
cmd_output('git', 'init')
|
||||
yield tmpdir
|
||||
yield repo
|
||||
|
||||
|
||||
def _make_conflict():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue