Skip to content

Commit 7bf87d7

Browse files
committed
fs: use posixpath.relpath instead of self.relpath
1 parent 341d114 commit 7bf87d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scmrepo/fs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def overlaps(cls, left, right):
160160
def relpath(self, path, start=None):
161161
if start is None:
162162
start = "."
163-
return self.relpath(self.abspath(path), start=self.abspath(start))
163+
return posixpath.relpath(self.abspath(path), start=self.abspath(start))
164164

165165
def relparts(self, path, start=None):
166166
return self.parts(self.relpath(path, start=start))

0 commit comments

Comments
 (0)