normalize /add paths

This commit is contained in:
Paul Gauthier 2023-07-07 16:41:29 -07:00
parent 02e9602d36
commit f266c87e59

View file

@ -259,7 +259,7 @@ class Commands:
self.coder.repo.git.add(os.path.join(self.coder.root, matched_file))
git_added.append(matched_file)
abs_file_path = os.path.abspath(os.path.join(self.coder.root, matched_file))
abs_file_path = str((Path(self.coder.root) / matched_file).resolve())
if abs_file_path not in self.coder.abs_fnames:
content = self.io.read_text(abs_file_path)
if content is not None: