Convert remaining callers of sha1_object_info_extended to object_id
[gitweb.git] / match-trees.c
index afb771c4f50cbb4517b5bc63096d4a0b9fb73346..0ca99d51626f49b5d4a88b9edc43c533c970dd0e 100644 (file)
@@ -214,7 +214,7 @@ static int splice_tree(const struct object_id *oid1, const char *prefix,
                rewrite_with = oid2;
        }
        oidcpy(rewrite_here, rewrite_with);
-       status = write_sha1_file(buf, sz, tree_type, result->hash);
+       status = write_object_file(buf, sz, tree_type, result);
        free(buf);
        return status;
 }