Commit f0dc6dbc authored by Łukasz Magiera's avatar Łukasz Magiera

object-patch: Support linking to non-dagpb objects

License: MIT
Signed-off-by: default avatarŁukasz Magiera <magik6k@gmail.com>
parent bd7f6d45
...@@ -212,8 +212,9 @@ func copyDag(nd *dag.ProtoNode, from, to dag.DAGService) error { ...@@ -212,8 +212,9 @@ func copyDag(nd *dag.ProtoNode, from, to dag.DAGService) error {
} }
childpb, ok := child.(*dag.ProtoNode) childpb, ok := child.(*dag.ProtoNode)
if !ok { if !ok { // leaf node
return dag.ErrNotProtobuf _, err := to.Add(nd)
return err
} }
err = copyDag(childpb, from, to) err = copyDag(childpb, from, to)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment