diff options
author | Kenji Fujiwara <kenji-f@is.naist.jp> | 2014-12-12 00:53:56 +0900 |
---|---|---|
committer | Kenji Fujiwara <kenji-f@is.naist.jp> | 2014-12-12 00:53:56 +0900 |
commit | a6fca2410a56225992959e5e4f8019e16757bfd1 (patch) | |
tree | 315644a7452c393ff150933d453bd6d4617e0e54 | |
parent | 750e9677b1ce303fa913c3e0754c3884d6517626 (diff) | |
download | gitpython-a6fca2410a56225992959e5e4f8019e16757bfd1.tar.gz |
encode name of actor to utf-8
-rw-r--r-- | git/refs/log.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git/refs/log.py b/git/refs/log.py index 43441884..742c9ccd 100644 --- a/git/refs/log.py +++ b/git/refs/log.py @@ -37,8 +37,9 @@ class RefLogEntry(tuple): def __repr__(self): """Representation of ourselves in git reflog format""" act = self.actor + name = act.name.encode('utf-8') time = self.time - return self._fmt % (self.oldhexsha, self.newhexsha, act.name, act.email, + return self._fmt % (self.oldhexsha, self.newhexsha, name, act.email, time[0], altz_to_utctz_str(time[1]), self.message) @property |