Update draft release notes to 2.0
[gitweb.git] / bundle.c
index 1388a3e6fdf352fe670e4236f305c1b1e97b74f2..1222952075fe4c9f3c25373123d8793b7c1692ef 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++;
 }
@@ -120,6 +120,7 @@ static int list_refs(struct ref_list *r, int argc, const char **argv)
        return 0;
 }
 
+/* Remember to update object flag allocation in object.h */
 #define PREREQ_MARK (1u<<16)
 
 int verify_bundle(struct bundle_header *header, int verbose)