Make 'unpack_trees()' take the index to work on as an argument
[gitweb.git] / builtin-read-tree.c
index 0138f5a9172034b2ce34222ff077a975f8998005..d004e9043100a45ae3ccf1d08f819cfdbc0b099c 100644 (file)
@@ -102,6 +102,7 @@ int cmd_read_tree(int argc, const char **argv, const char *unused_prefix)
 
        memset(&opts, 0, sizeof(opts));
        opts.head_idx = -1;
+       opts.index = &the_index;
 
        git_config(git_default_config);