]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/fast-import.c
Always use oidread to read into struct object_id
[thirdparty/git.git] / builtin / fast-import.c
index 3afa81cf9acdba53ef6ddaa30b54e5ae539f745d..9d2a058a6664a4c8a71e3fe83c1d93edbcddec2d 100644 (file)
@@ -1276,8 +1276,8 @@ static void load_tree(struct tree_entry *root)
                e->versions[0].mode = e->versions[1].mode;
                e->name = to_atom(c, strlen(c));
                c += e->name->str_len + 1;
-               hashcpy(e->versions[0].oid.hash, (unsigned char *)c);
-               hashcpy(e->versions[1].oid.hash, (unsigned char *)c);
+               oidread(&e->versions[0].oid, (unsigned char *)c);
+               oidread(&e->versions[1].oid, (unsigned char *)c);
                c += the_hash_algo->rawsz;
        }
        free(buf);