mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
feat: Pass cwd as root to FileWatcher when subtree_only
This commit is contained in:
parent
9bebb1e9a9
commit
195ae5ce4b
1 changed files with 1 additions and 1 deletions
|
@ -870,10 +870,10 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
if args.aiderignore:
|
||||
ignores.append(args.aiderignore)
|
||||
|
||||
# if args.subtree_only, pass root=os.cwd ai!
|
||||
if args.watch_files:
|
||||
file_watcher = FileWatcher(
|
||||
coder, gitignores=ignores, verbose=args.verbose, analytics=analytics,
|
||||
root=str(Path.cwd()) if args.subtree_only else None,
|
||||
)
|
||||
coder.file_watcher = file_watcher
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue