diff --git a/commonspace/object/tree/exporter/treeexporter.go b/commonspace/object/tree/exporter/treeexporter.go index 01d41f96..3dabd605 100644 --- a/commonspace/object/tree/exporter/treeexporter.go +++ b/commonspace/object/tree/exporter/treeexporter.go @@ -73,5 +73,8 @@ func (t *treeExporter) ExportUnencrypted(tree objecttree.ReadableObjectTree) (er err = putStorage(change) return err == nil }) - return err + if err != nil { + return + } + return treeStorage.SetHeads(tree.Heads()) }