unpack-trees: preserve index extensions
[gitweb.git] / unpack-trees.c
index aa15111fefc8ca333edeeeb3ac77a8b946e4c6a5..17117bd0fda83fb2c5fc89082a1d5a72f1049fb8 100644 (file)
@@ -1391,6 +1391,7 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
                                                  WRITE_TREE_SILENT |
                                                  WRITE_TREE_REPAIR);
                }
+               move_index_extensions(&o->result, o->dst_index);
                discard_index(o->dst_index);
                *o->dst_index = o->result;
        } else {