Skip to content

Commit 50aea99

Browse files
Remove redundant fspath
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b3908ed commit 50aea99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/refs/symbolic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(self, repo: "Repo", path: PathLike, check_path: bool = False) -> No
7979
self.path = os.fspath(path)
8080

8181
def __str__(self) -> str:
82-
return os.fspath(self.path)
82+
return self.path
8383

8484
def __repr__(self) -> str:
8585
return '<git.%s "%s">' % (self.__class__.__name__, self.path)

0 commit comments

Comments
 (0)