Content-Length: 261926 | pFad | http://github.com/gitpython-developers/GitPython/commit/90c4db1f3ba931b812d9415324d7a8d2769fd6db

9F Use UTF-8 encoding when getting information about packed refs · gitpython-developers/GitPython@90c4db1 · GitHub
Skip to content

Commit 90c4db1

Browse files
Klyahin AlekseyByron
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/gitpython-developers/GitPython/commit/90c4db1f3ba931b812d9415324d7a8d2769fd6db

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy