mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +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.parent.mkdir(parents=True, exist_ok=True)
|
||||||
fname.touch()
|
fname.touch()
|
||||||
|
|
||||||
|
fname = fname.resolve()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
repo_path = git.Repo(fname, search_parent_directories=True).working_dir
|
repo_path = git.Repo(fname, search_parent_directories=True).working_dir
|
||||||
repo_paths.append(repo_path)
|
repo_paths.append(repo_path)
|
||||||
|
@ -229,7 +231,6 @@ class Coder:
|
||||||
if fname.is_dir():
|
if fname.is_dir():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
fname = fname.resolve()
|
|
||||||
self.abs_fnames.add(str(fname))
|
self.abs_fnames.add(str(fname))
|
||||||
|
|
||||||
num_repos = len(set(repo_paths))
|
num_repos = len(set(repo_paths))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue