mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
refac make_repo
This commit is contained in:
parent
10b327d487
commit
4447f61dc6
1 changed files with 7 additions and 5 deletions
|
@ -38,9 +38,11 @@ class ChdirTemporaryDirectory(IgnorantTemporaryDirectory):
|
|||
class GitTemporaryDirectory(ChdirTemporaryDirectory):
|
||||
def __enter__(self):
|
||||
res = super().__enter__()
|
||||
make_repo()
|
||||
return res
|
||||
|
||||
|
||||
def make_repo():
|
||||
repo = git.Repo.init()
|
||||
repo.config_writer().set_value("user", "name", "Test User").release()
|
||||
repo.config_writer().set_value("user", "email", "testuser@example.com").release()
|
||||
|
||||
return res
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue