Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ac9c19 commit 74cb7afCopy full SHA for 74cb7af
git/refs/symbolic.py
@@ -90,7 +90,7 @@ def _iter_packed_refs(cls, repo):
90
"""Returns an iterator yielding pairs of sha1/path pairs (as bytes) for the corresponding refs.
91
:note: The packed refs file will be kept open as long as we iterate"""
92
try:
93
- with open(cls._get_packed_refs_path(repo), 'rt') as fp:
+ with open(cls._get_packed_refs_path(repo), 'rt', encoding='utf-8') as fp:
94
for line in fp:
95
line = line.strip()
96
if not line:
0 commit comments