There was an error while loading. Please reload this page.
1 parent 3801505 commit 086e832Copy full SHA for 086e832
1 file changed
git/refs/log.py
@@ -168,7 +168,7 @@ def __init__(self, filepath: Union[PathLike, None] = None) -> None:
168
"""Initialize this instance with an optional filepath, from which we will
169
initialize our data. The path is also used to write changes back using the
170
:meth:`write` method."""
171
- self._path = os.fspath(filepath)
+ self._path = None if filepath is None else os.fspath(filepath)
172
if filepath is not None:
173
self._read_from_file()
174
# END handle filepath
0 commit comments