From bc4664d62c1862266e3772767814c487c964d8f1 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 25 Oct 2024 12:56:20 -0700 Subject: [PATCH] feat: pass gitignore path to watch_source_files function --- aider/io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/io.py b/aider/io.py index 9b36a974f..47085d694 100644 --- a/aider/io.py +++ b/aider/io.py @@ -367,9 +367,9 @@ class InputOutput: stop_event = threading.Event() def watch_files(): - gitignore = Path(root) / ".gitignore" try: - for changed in watch_source_files(root, stop_event=stop_event): + gitignore = [str(Path(root) / ".gitignore")] + for changed in watch_source_files(root, stop_event=stop_event, gitignores=gitignore): dump(changed) if changed: self.changed_files = list(changed)[0] # Take the first changed file