From 69dd55af5de49c4fef8169646e708871c9d845a8 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 12 Aug 2024 09:04:59 -0700 Subject: [PATCH] fix: Fix cmd_add to use correct GitRepo method --- aider/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index 0676228d2..41a01bafb 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -592,7 +592,7 @@ class Commands: if abs_file_path in self.coder.abs_fnames: self.io.tool_error(f"{matched_file} is already in the chat") elif abs_file_path in self.coder.abs_read_only_fnames: - if self.coder.repo and self.coder.repo.is_tracked_file(matched_file): + if self.coder.repo and matched_file in self.coder.repo.get_tracked_files(): self.coder.abs_read_only_fnames.remove(abs_file_path) self.coder.abs_fnames.add(abs_file_path) self.io.tool_output(