Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Update draft release notes to 2.0
[gitweb.git]
/
bundle.c
diff --git
a/bundle.c
b/bundle.c
index 1388a3e6fdf352fe670e4236f305c1b1e97b74f2..a85e0e4532ad10934b3d9c510db9e26b338f14f1 100644
(file)
--- a/
bundle.c
+++ b/
bundle.c
@@
-15,7
+15,7
@@
static void add_to_ref_list(const unsigned char *sha1, const char *name,
struct ref_list *list)
{
ALLOC_GROW(list->list, list->nr + 1, list->alloc);
-
memcpy(list->list[list->nr].sha1, sha1, 20
);
+
hashcpy(list->list[list->nr].sha1, sha1
);
list->list[list->nr].name = xstrdup(name);
list->nr++;
}