]> git.ipfire.org Git - thirdparty/git.git/blobdiff - notes-cache.c
refs: convert peel_object to struct object_id
[thirdparty/git.git] / notes-cache.c
index a1969ab05273221d4e6b20fd63976766beea3d45..17ee8602b3d2fbc2469a98e6cdeab0f2ff2b7ad3 100644 (file)
@@ -11,7 +11,7 @@ static int notes_cache_match_validity(const char *ref, const char *validity)
        struct strbuf msg = STRBUF_INIT;
        int ret;
 
-       if (read_ref(ref, oid.hash) < 0)
+       if (read_ref(ref, &oid) < 0)
                return 0;
 
        commit = lookup_commit_reference_gently(&oid, 1);