mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
handle submodules (or other dirs) which are git tracked #336
This commit is contained in:
parent
5d0e92296a
commit
bf6cd8294e
3 changed files with 29 additions and 46 deletions
|
@ -728,6 +728,7 @@ class Coder:
|
|||
else:
|
||||
files = self.get_inchat_relative_files()
|
||||
|
||||
files = [fname for fname in files if Path(self.abs_root_path(fname)).is_file()]
|
||||
return sorted(set(files))
|
||||
|
||||
def get_all_abs_files(self):
|
||||
|
|
|
@ -146,6 +146,9 @@ class InputOutput:
|
|||
except FileNotFoundError:
|
||||
self.tool_error(f"{filename}: file not found error")
|
||||
return
|
||||
except IsADirectoryError:
|
||||
self.tool_error(f"{filename}: is a directory")
|
||||
return
|
||||
except UnicodeError as e:
|
||||
self.tool_error(f"{filename}: {e}")
|
||||
self.tool_error("Use --encoding to set the unicode encoding.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue