pretty: allow %(trailers) options with explicit value
[gitweb.git] / builtin / replace.c
index 30a661ea0c71f058cdb8bc7626334cb03747fa7c..a58b9c6d130568602ac7928bd1da4a83724ff4f1 100644 (file)
@@ -295,7 +295,7 @@ static int import_object(struct object_id *oid, enum object_type type,
                        close(fd);
                        return -1;
                }
-               if (index_fd(oid, fd, &st, type, NULL, flags) < 0)
+               if (index_fd(&the_index, oid, fd, &st, type, NULL, flags) < 0)
                        return error(_("unable to write object to database"));
                /* index_fd close()s fd for us */
        }