Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Implemented tree reloading in fast-import.
[gitweb.git]
/
object.c
diff --git
a/object.c
b/object.c
index fdcfff7c86057bf8e5a7285518f186c67a1715bb..60bf16b902033d9f256282201ca7aeca74855d7e 100644
(file)
--- a/
object.c
+++ b/
object.c
@@
-91,7
+91,7
@@
void created_object(const unsigned char *sha1, struct object *obj)
obj->used = 0;
obj->type = OBJ_NONE;
obj->flags = 0;
-
memcpy(obj->sha1, sha1, 20
);
+
hashcpy(obj->sha1, sha1
);
if (obj_hash_size - 1 <= nr_objs * 2)
grow_object_hash();