Browse Source

Fix tests.

Jelmer Vernooij 6 năm trước cách đây
mục cha
commit
afe4d2e27a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      dulwich/repo.py

+ 1 - 1
dulwich/repo.py

@@ -130,7 +130,7 @@ def _get_default_identity():
         fullname = None
     else:
         try:
-            fullname = pwd.getpwnam(username).pw_gecos.split(',')[0]
+            fullname = pwd.getpwnam(username).pw_gecos.split(',')[0].decode('utf-8')
         except KeyError:
             fullname = None
     if not fullname: