ソースを参照

fastexport: restore handling of markers in commit commands

Antoine Pietri 7 年 前
コミット
ccd1bd5e69
1 ファイル変更2 行追加0 行削除
  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":