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 {
}
childpb, ok := child.(*dag.ProtoNode)
if !ok {
return dag.ErrNotProtobuf
if !ok { // leaf node
_, err := to.Add(nd)
return err
}
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