Browse Source

fastexport: restore handling of markers in commit commands

Antoine Pietri 7 năm trước cách đây
mục cha
commit
ccd1bd5e69
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      dulwich/fastexport.py

+ 2 - 0
dulwich/fastexport.py

@@ -168,6 +168,8 @@ class GitImportProcessor(processor.ImportProcessor):
         commit.message = cmd.message
         commit.parents = []
         if cmd.from_:
+            if cmd.from_.startswith(b":"):
+                cmd.from_ = self.markers[cmd.from_[1:]]
             self._reset_base(cmd.from_)
         for filecmd in cmd.iter_files():
             if filecmd.name == b"filemodify":