refs: convert read_raw_ref backends to struct object_id
[gitweb.git] / sha1_name.c
index 514915460f4df9320e3ae7a5f9a97ea59c8c3f13..8d903a74d4f8edb75e8185b0ab4c941b9f9ae0a1 100644 (file)
@@ -697,7 +697,7 @@ static int get_oid_basic(const char *str, int len, struct object_id *oid,
                                return -1;
                        }
                }
-               if (read_ref_at(real_ref, flags, at_time, nth, oid->hash, NULL,
+               if (read_ref_at(real_ref, flags, at_time, nth, oid, NULL,
                                &co_time, &co_tz, &co_cnt)) {
                        if (!len) {
                                if (starts_with(real_ref, "refs/heads/")) {