2
0
Эх сурвалжийг харах

GitImportProcessor: handle commit markers

Antoine Pietri 7 жил өмнө
parent
commit
a2edfbf9f1

+ 2 - 0
dulwich/fastexport.py

@@ -211,6 +211,8 @@ class GitImportProcessor(processor.ImportProcessor):
         pass
         pass
 
 
     def _reset_base(self, commit_id):
     def _reset_base(self, commit_id):
+        if commit_id.startswith(b":"):
+            commit_id = self.markers[commit_id[1:]]
         if self.last_commit == commit_id:
         if self.last_commit == commit_id:
             return
             return
         self.last_commit = commit_id
         self.last_commit = commit_id