mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
update files on the happy path
This commit is contained in:
parent
82813d4159
commit
22a5e493a7
1 changed files with 2 additions and 0 deletions
|
@ -727,6 +727,8 @@ class Coder:
|
||||||
full_path = os.path.abspath(os.path.join(self.root, path))
|
full_path = os.path.abspath(os.path.join(self.root, path))
|
||||||
|
|
||||||
if full_path in self.abs_fnames:
|
if full_path in self.abs_fnames:
|
||||||
|
if not self.dry_run and write_content:
|
||||||
|
Path(full_path).write_text(write_content)
|
||||||
return full_path
|
return full_path
|
||||||
|
|
||||||
if not Path(full_path).exists():
|
if not Path(full_path).exists():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue