tests and bugfix

This commit is contained in:
Paul Gauthier 2023-07-24 17:47:53 -03:00
parent 957f59c011
commit c8f1c0609d
3 changed files with 37 additions and 6 deletions

View file

@ -42,7 +42,11 @@ class GitTemporaryDirectory(ChdirTemporaryDirectory):
return res
def make_repo():
repo = git.Repo.init()
def make_repo(path=None):
if not path:
path = "."
repo = git.Repo.init(path)
repo.config_writer().set_value("user", "name", "Test User").release()
repo.config_writer().set_value("user", "email", "testuser@example.com").release()
return repo