소스 검색

Stash commit time when reconstituting a commit

John Carr 16 년 전
부모
커밋
466417fec2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      dulwich/objects.py

+ 2 - 2
dulwich/objects.py

@@ -362,8 +362,8 @@ class Commit(ShaFile):
     self._text += "%s %s\n" % (TREE_ID, self._tree)
     for p in self._parents:
       self._text += "%s %s\n" % (PARENT_ID, p)
-    self._text += "%s %s\n" % (AUTHOR_ID, self._author)
-    self._text += "%s %s\n" % (COMMITTER_ID, self._committer)
+    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 += message
 
   @property