summaryrefslogtreecommitdiff
path: root/t/helper/test-sha1-array.c
diff options
context:
space:
mode:
Diffstat (limited to 't/helper/test-sha1-array.c')
-rw-r--r--t/helper/test-sha1-array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-sha1-array.c b/t/helper/test-sha1-array.c
index b4bb97f..181c36e 100644
--- a/t/helper/test-sha1-array.c
+++ b/t/helper/test-sha1-array.c
@@ -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);