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

Commit891b124

Browse files
committed
Merge pull requestgitpython-developers#215 from niyaton/fix-reflog-encoding-bug
encode name of actor to utf-8
2 parents750e967 +a6fca24 commit891b124

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎git/refs/log.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ class RefLogEntry(tuple):
3737
def__repr__(self):
3838
"""Representation of ourselves in git reflog format"""
3939
act=self.actor
40+
name=act.name.encode('utf-8')
4041
time=self.time
41-
returnself._fmt% (self.oldhexsha,self.newhexsha,act.name,act.email,
42+
returnself._fmt% (self.oldhexsha,self.newhexsha,name,act.email,
4243
time[0],altz_to_utctz_str(time[1]),self.message)
4344

4445
@property

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp