mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
resolve cmd line files to abs path
This commit is contained in:
parent
55b1634811
commit
a0774bf46a
1 changed files with 2 additions and 1 deletions
|
@ -220,6 +220,8 @@ class Coder:
|
|||
fname.parent.mkdir(parents=True, exist_ok=True)
|
||||
fname.touch()
|
||||
|
||||
fname = fname.resolve()
|
||||
|
||||
try:
|
||||
repo_path = git.Repo(fname, search_parent_directories=True).working_dir
|
||||
repo_paths.append(repo_path)
|
||||
|
@ -229,7 +231,6 @@ class Coder:
|
|||
if fname.is_dir():
|
||||
continue
|
||||
|
||||
fname = fname.resolve()
|
||||
self.abs_fnames.add(str(fname))
|
||||
|
||||
num_repos = len(set(repo_paths))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue