Skip to content

Commit b3908ed

Browse files
Use converted file path
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 086e832 commit b3908ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/index/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class TemporaryFileSwap:
3838

3939
def __init__(self, file_path: PathLike) -> None:
4040
self.file_path = os.fspath(file_path)
41-
dirname, basename = osp.split(file_path)
41+
dirname, basename = osp.split(self.file_path)
4242
fd, self.tmp_file_path = tempfile.mkstemp(prefix=basename, dir=dirname)
4343
os.close(fd)
4444
with contextlib.suppress(OSError): # It may be that the source does not exist.

0 commit comments

Comments
 (0)