diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index a3285d888..624d00be3 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -244,10 +244,18 @@ class Coder: self.repo = git.Repo(repo_paths.pop(), odbt=git.GitDB) self.root = self.repo.working_tree_dir + if self.verbose: + dump(self.repo) + dump(self.root) + dump(os.getcwd()) new_files = [] for fname in self.abs_fnames: relative_fname = self.get_rel_fname(fname) + if self.verbose: + dump(fname) + dump(relative_fname) + tracked_files = set(self.get_tracked_files()) if relative_fname not in tracked_files: new_files.append(relative_fname) diff --git a/tests/test_main.py b/tests/test_main.py index dfff719ac..2ab5d132d 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -37,7 +37,7 @@ class TestMain(TestCase): subprocess.run(["git", "init"]) subprocess.run(["git", "config", "user.email", "dummy@example.com"]) subprocess.run(["git", "config", "user.name", "Dummy User"]) - main(["--yes", "foo.txt"], input=DummyInput(), output=DummyOutput()) + main(["--verbose", "--yes", "foo.txt"], input=DummyInput(), output=DummyOutput()) self.assertTrue(os.path.exists("foo.txt")) def test_main_args(self):