Skip to content

Commit

Permalink
GitImportProcessor: handle markers for merges
Browse files Browse the repository at this point in the history
  • Loading branch information
seirl authored and jelmer committed Jul 19, 2017
1 parent 33f5309 commit f66e753
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dulwich/fastexport.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ def commit_handler(self, cmd):
self._contents.items()))
if self.last_commit is not None:
commit.parents.append(self.last_commit)
commit.parents += cmd.merges
for merge in cmd.merges:
if merge.startswith(b':'):
merge = self.markers[merge[1:]]
commit.parents.append(merge)
self.repo.object_store.add_object(commit)
self.repo[cmd.ref] = commit.id
self.last_commit = commit.id
Expand Down

0 comments on commit f66e753

Please sign in to comment.