mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-17 14:30:05 -06:00
15 lines
252 B
Python
15 lines
252 B
Python
from __future__ import absolute_import
|
|
from __future__ import unicode_literals
|
|
|
|
from plumbum import local
|
|
|
|
|
|
git = local['git']
|
|
|
|
|
|
def git_dir(tmpdir_factory):
|
|
path = tmpdir_factory.get()
|
|
with local.cwd(path):
|
|
git('init')
|
|
return path
|