fetch-pack.c: use oidset to check existence of loose object
[gitweb.git] / notes-cache.c
index 010ad236cb7717d7a3258ae92ae0b36c95d0f8dd..398e61d5e943b1e6e143f159739f83fc0df9b6b8 100644 (file)
@@ -88,7 +88,7 @@ int notes_cache_put(struct notes_cache *c, struct object_id *key_oid,
 {
        struct object_id value_oid;
 
-       if (write_sha1_file(data, size, "blob", value_oid.hash) < 0)
+       if (write_object_file(data, size, "blob", &value_oid) < 0)
                return -1;
        return add_note(&c->tree, key_oid, &value_oid, NULL);
 }