fix: correct aiderignore path handling for file watching

This commit is contained in:
Paul Gauthier 2024-11-27 16:22:55 -08:00 committed by Paul Gauthier (aider)
parent 4b51bb2334
commit f69dd0ef8d

View file

@ -797,8 +797,8 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
ignores = [] ignores = []
if git_root: if git_root:
ignores.append(str(Path(git_root) / ".gitignore")) ignores.append(str(Path(git_root) / ".gitignore"))
if args.aiderignore: if args.aiderignore:
ignores.append(str(Path(git_root) / args.aiderignore)) ignores.append(args.aiderignore)
io.file_watcher = FileWatcher(coder.root, encoding=io.encoding, gitignores=ignores) io.file_watcher = FileWatcher(coder.root, encoding=io.encoding, gitignores=ignores)
coder.show_announcements() coder.show_announcements()