8000 Use UTF-8 encoding when getting information about packed refs · jasm/GitPython@90c4db1 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 1 addition & 1 deletion
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)
0