Skip to content

Commit

Permalink
fs: use posixpath.relpath instead of self.relpath
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Dec 15, 2023
1 parent 341d114 commit 7bf87d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scmrepo/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def overlaps(cls, left, right):
def relpath(self, path, start=None):
if start is None:
start = "."
return self.relpath(self.abspath(path), start=self.abspath(start))
return posixpath.relpath(self.abspath(path), start=self.abspath(start))

def relparts(self, path, start=None):
return self.parts(self.relpath(path, start=start))
Expand Down

0 comments on commit 7bf87d7

Please sign in to comment.