Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

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

Sign up
Appearance settings

Commit90c4db1

Browse files
Klyahin AlekseyByron
Klyahin Aleksey
authored andcommitted
Use UTF-8 encoding when getting information about packed refs
1 parente62078d commit90c4db1

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-
withopen(cls._get_packed_refs_path(repo),'rt')asfp:
90+
withopen(cls._get_packed_refs_path(repo),'rt',encoding='UTF-8')asfp:
9191
forlineinfp:
9292
line=line.strip()
9393
ifnotline:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp