mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
tests and bugfix
This commit is contained in:
parent
957f59c011
commit
c8f1c0609d
3 changed files with 37 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue