Jelmer Vernooij %!s(int64=5) %!d(string=hai) anos
pai
achega
07fab8de00
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      dulwich/patch.py

+ 2 - 1
dulwich/patch.py

@@ -83,7 +83,8 @@ def get_summary(commit):
     :param commit: Commit
     :return: Summary string
     """
-    return commit.message.decode(errors='replace').splitlines()[0].replace(" ", "-")
+    decoded = commit.message.decode(errors='replace')
+    return decoded.splitlines()[0].replace(" ", "-")
 
 
 #  Unified Diff