From 9c40fc34156f0b679c0aea998377575b4a1503d9 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 16 Jul 2023 18:27:17 -0300 Subject: [PATCH] Path.cwd --- aider/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/main.py b/aider/main.py index 23c2b2a9a..568dd0d11 100644 --- a/aider/main.py +++ b/aider/main.py @@ -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"):