Skip to content

Commit 12ff7c2

Browse files
Merge pull request #437 from pypa/bugfix/436-realpath-everywhere
Use realpath during relpath to avoid cross-volume issues on Windows.
2 parents d7c122e + 340b235 commit 12ff7c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/setuptools_scm/file_finder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ def _link_not_in_scm(n):
5050
# dirpath + filename with symlinks preserved
5151
fullfilename = os.path.join(dirpath, filename)
5252
if os.path.normcase(os.path.realpath(fullfilename)) in scm_files:
53-
res.append(os.path.join(path, os.path.relpath(fullfilename, path)))
53+
res.append(os.path.join(path, os.path.relpath(fullfilename, realpath)))
5454
seen.add(realdirpath)
5555
return res

0 commit comments

Comments
 (0)