git-pull.sh: use the $( ... ) construct for command substitution
[gitweb.git] / 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++;
 }