Selaa lähdekoodia

fastexport: restore handling of markers in commit commands

Antoine Pietri 7 vuotta sitten
vanhempi
commit
ccd1bd5e69
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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":