Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
fetch-pack.c: use oidset to check existence of loose object
[gitweb.git]
/
notes-cache.c
diff --git
a/notes-cache.c
b/notes-cache.c
index 010ad236cb7717d7a3258ae92ae0b36c95d0f8dd..398e61d5e943b1e6e143f159739f83fc0df9b6b8 100644
(file)
--- a/
notes-cache.c
+++ b/
notes-cache.c
@@
-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);
}