ls-files: correct index argument to get_convert_attr_ascii()
[gitweb.git] / refs / files-backend.c
index 4e43dd46b543d3665ab5d1128ccbbd5e26b6fbb0..b9eb3aabe6388a6437109439c3ac2ca298853892 100644 (file)
@@ -1651,7 +1651,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",