mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
Path.cwd
This commit is contained in:
parent
6f7936e5f8
commit
9c40fc3415
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ def setup_git(git_root, io):
|
|||
if not io.confirm_ask("No git repo found, create one to track GPT's changes (recommended)?"):
|
||||
return
|
||||
|
||||
repo = git.Repo.init(os.getcwd())
|
||||
repo = git.Repo.init(Path.cwd())
|
||||
global_git_config = git.GitConfigParser([str(Path.home() / ".gitconfig")], read_only=True)
|
||||
with repo.config_writer() as git_config:
|
||||
if not global_git_config.has_option("user", "name"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue