object: add repository argument to object_as_type
[gitweb.git] / refs / files-backend.c
index a9a066dcfb60d83a10e27d1c0d1131faf2ae97a4..55c2ae0bd591f01760cc3824edebf8893689f152 100644 (file)
@@ -1660,7 +1660,7 @@ static int write_ref_to_lockfile(struct ref_lock *lock,
        struct object *o;
        int fd;
 
-       o = parse_object(oid);
+       o = parse_object(the_repository, oid);
        if (!o) {
                strbuf_addf(err,
                            "trying to write ref '%s' with nonexistent object %s",