Skip to content

Commit 90c4db1

Browse files
Klyahin AlekseyByron
Klyahin Aleksey
authored andcommitted
Use UTF-8 encoding when getting information about packed refs
1 parent e62078d commit 90c4db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/refs/symbolic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _iter_packed_refs(cls, repo):
8787
"""Returns an iterator yielding pairs of sha1/path pairs (as bytes) for the corresponding refs.
8888
:note: The packed refs file will be kept open as long as we iterate"""
8989
try:
90-
with open(cls._get_packed_refs_path(repo), 'rt') as fp:
90+
with open(cls._get_packed_refs_path(repo), 'rt', encoding='UTF-8') as fp:
9191
for line in fp:
9292
line = line.strip()
9393
if not line:

0 commit comments

Comments
 (0)