Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pack-objects: abstract away hash algorithm
[gitweb.git]
/
cache-tree.c
diff --git
a/cache-tree.c
b/cache-tree.c
index 6a555f4d431f9f6dbf8dad06d75a4ec81a4254fd..8c7e1258a4861a7f692de6892c18c9a9e1e81061 100644
(file)
--- a/
cache-tree.c
+++ b/
cache-tree.c
@@
-523,7
+523,7
@@
static struct cache_tree *read_one(const char **buffer, unsigned long *size_p)
if (0 <= it->entry_count) {
if (size < rawsz)
goto free_return;
-
memcpy(it->oid.hash, (const unsigned char*)buf, rawsz
);
+
oidread(&it->oid, (const unsigned char *)buf
);
buf += rawsz;
size -= rawsz;
}