Skip to content
Merged
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
PrevPrevious commit
NextNext commit
Fix union type conversion to path
  • Loading branch information
@George-Ogden
George-Ogden committed Nov 28, 2025
commit 086e83239388988772e21ee820c23e59533382f7
2 changes: 1 addition & 1 deletion git/refs/log.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -168,7 +168,7 @@ def __init__(self, filepath: Union[PathLike, None] = None) -> None:
"""Initialize this instance with an optional filepath, from which we will
initialize our data. The path is also used to write changes back using the
:meth:`write` method."""
self._path = os.fspath(filepath)
self._path = None if filepath is None else os.fspath(filepath)
if filepath is not None:
self._read_from_file()
# END handle filepath
Expand Down
Loading