浏览代码

Missing newline

John Carr 16 年之前
父节点
当前提交
5fe5997165
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      dulwich/objects.py

+ 1 - 0
dulwich/objects.py

@@ -370,6 +370,7 @@ class Commit(ShaFile):
       self._text += "%s %s\n" % (PARENT_ID, p)
     self._text += "%s %s %s +0000\n" % (AUTHOR_ID, self._author, str(self._commit_time))
     self._text += "%s %s %s +0000\n" % (COMMITTER_ID, self._committer, str(self._commit_time))
+    self._text += "\n" # There must be a new line after the headers
     self._text += self._message
 
   @property