Make sha1_array_append take a struct object_id *
[git/git.git] / t / helper / test-sha1-array.c
index b4bb97f..181c36e 100644 (file)
@@ -19,7 +19,7 @@ int cmd_main(int argc, const char **argv)
                if (skip_prefix(line.buf, "append ", &arg)) {
                        if (get_oid_hex(arg, &oid))
                                die("not a hexadecimal SHA1: %s", arg);
-                       sha1_array_append(&array, oid.hash);
+                       sha1_array_append(&array, &oid);
                } else if (skip_prefix(line.buf, "lookup ", &arg)) {
                        if (get_oid_hex(arg, &oid))
                                die("not a hexadecimal SHA1: %s", arg);