Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use converted file path
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
  • Loading branch information
George-Ogden and Copilot authored Nov 29, 2025
commit b3908ed04815b1d89a000fc7824a804c37906365
2 changes: 1 addition & 1 deletion git/index/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class TemporaryFileSwap:

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