Skip to content

Commit 891b124

Browse files
committed
Merge pull request #215 from niyaton/fix-reflog-encoding-bug
encode name of actor to utf-8
2 parents 750e967 + a6fca24 commit 891b124

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)