Jelajahi Sumber

Split line.

Jelmer Vernooij 5 tahun lalu
induk
melakukan
07fab8de00
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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