Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 086e832 commit b3908edCopy full SHA for b3908ed
1 file changed
git/index/util.py
@@ -38,7 +38,7 @@ class TemporaryFileSwap:
38
39
def __init__(self, file_path: PathLike) -> None:
40
self.file_path = os.fspath(file_path)
41
- dirname, basename = osp.split(file_path)
+ dirname, basename = osp.split(self.file_path)
42
fd, self.tmp_file_path = tempfile.mkstemp(prefix=basename, dir=dirname)
43
os.close(fd)
44
with contextlib.suppress(OSError): # It may be that the source does not exist.
0 commit comments