mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
fixes #1288
This commit is contained in:
parent
d7d3f3a740
commit
3bf403ba05
1 changed files with 6 additions and 5 deletions
|
@ -156,11 +156,12 @@ class RepoMap:
|
|||
return repo_content
|
||||
|
||||
def get_rel_fname(self, fname):
|
||||
return os.path.relpath(fname, self.root)
|
||||
|
||||
def split_path(self, path):
|
||||
path = os.path.relpath(path, self.root)
|
||||
return [path + ":"]
|
||||
try:
|
||||
return os.path.relpath(fname, self.root)
|
||||
except ValueError:
|
||||
# Issue #1288: ValueError: path is on mount 'C:', start on mount 'D:'
|
||||
# Just return the full fname.
|
||||
return fname
|
||||
|
||||
def load_tags_cache(self):
|
||||
path = Path(self.root) / self.TAGS_CACHE_DIR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue