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

Commit863abe8

Browse files
committed
Use UTF-8 encoding when getting information about a symbolic reference
Fixes#774
1 parent84c3f60 commit863abe8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

‎doc/source/changes.rst‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ Unreleased
88
* Restricted GitDB (gitdb2) version requirement to < 4
99
* Removed old nose library from test requirements
1010

11+
Bugfixes
12+
--------
13+
14+
* Changed to use UTF-8 instead of default encoding when getting information about a symbolic reference
15+
(`#774<https://github.com/gitpython-developers/GitPython/issues/774>`_)
16+
1117
3.0.8
1218
=====
1319

‎git/refs/symbolic.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _get_ref_info_helper(cls, repo, ref_path):
142142
tokens=None
143143
repodir=_git_dir(repo,ref_path)
144144
try:
145-
withopen(osp.join(repodir,ref_path),'rt')asfp:
145+
withopen(osp.join(repodir,ref_path),'rt',encoding='UTF-8')asfp:
146146
value=fp.read().rstrip()
147147
# Don't only split on spaces, but on whitespace, which allows to parse lines like
148148
# 60b64ef992065e2600bfef6187a97f92398a9144 branch 'master' of git-server:/path/to/repo

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp