object: convert parse_object* to take struct object_id
[git/git.git] / refs / files-backend.c
index 2c360a4..2cccdf7 100644 (file)
@@ -2057,7 +2057,7 @@ static int write_ref_to_lockfile(struct ref_lock *lock,
        struct object *o;
        int fd;
 
-       o = parse_object(oid->hash);
+       o = parse_object(oid);
        if (!o) {
                strbuf_addf(err,
                            "trying to write ref '%s' with nonexistent object %s",