Browse Source

Fix tests.

Jelmer Vernooij 6 years ago
parent
commit
afe4d2e27a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dulwich/repo.py

+ 1 - 1
dulwich/repo.py

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