mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00
fix logic when there is no git repo
This commit is contained in:
parent
86ba5c778c
commit
a614179209
2 changed files with 11 additions and 7 deletions
|
@ -79,6 +79,14 @@ class Coder:
|
|||
repo_paths.append(repo_path)
|
||||
except git.exc.InvalidGitRepositoryError:
|
||||
pass
|
||||
|
||||
if fname.is_dir():
|
||||
continue
|
||||
self.console.print(f"[bright_black]Loading {fname}")
|
||||
|
||||
fname = fname.resolve()
|
||||
self.abs_fnames.add(str(fname))
|
||||
|
||||
num_repos = len(set(repo_paths))
|
||||
|
||||
if num_repos == 0:
|
||||
|
@ -95,10 +103,6 @@ class Coder:
|
|||
|
||||
new_files = []
|
||||
for fname in abs_fnames:
|
||||
if fname.is_dir():
|
||||
continue
|
||||
self.console.print(f"[bright_black]Loading {fname}")
|
||||
|
||||
fname = fname.resolve()
|
||||
self.abs_fnames.add(str(fname))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue