mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
14 lines
252 B
Python
14 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
|