mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-05 12:14:59 +00:00
cleanup cmd_drop test
This commit is contained in:
parent
e42a7caf1b
commit
57a1aafdfd
2 changed files with 2 additions and 4 deletions
|
@ -609,13 +609,13 @@ class Commands:
|
|||
|
||||
filenames = parse_quoted_filenames(args)
|
||||
for word in filenames:
|
||||
# Handle read-only files separately
|
||||
# Handle read-only files separately, without glob_filtered_to_repo
|
||||
read_only_matched = [f for f in self.coder.abs_read_only_fnames if word in f]
|
||||
|
||||
if read_only_matched:
|
||||
for matched_file in read_only_matched:
|
||||
self.coder.abs_read_only_fnames.remove(matched_file)
|
||||
self.io.tool_output(f"Removed read-only file {matched_file} from the chat")
|
||||
continue
|
||||
|
||||
matched_files = self.glob_filtered_to_repo(word)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue