mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35: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
|
return repo_content
|
||||||
|
|
||||||
def get_rel_fname(self, fname):
|
def get_rel_fname(self, fname):
|
||||||
return os.path.relpath(fname, self.root)
|
try:
|
||||||
|
return os.path.relpath(fname, self.root)
|
||||||
def split_path(self, path):
|
except ValueError:
|
||||||
path = os.path.relpath(path, self.root)
|
# Issue #1288: ValueError: path is on mount 'C:', start on mount 'D:'
|
||||||
return [path + ":"]
|
# Just return the full fname.
|
||||||
|
return fname
|
||||||
|
|
||||||
def load_tags_cache(self):
|
def load_tags_cache(self):
|
||||||
path = Path(self.root) / self.TAGS_CACHE_DIR
|
path = Path(self.root) / self.TAGS_CACHE_DIR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue