]> git.ipfire.org Git - thirdparty/git.git/blobdiff - tree-walk.c
Sync with 2.31.7
[thirdparty/git.git] / tree-walk.c
index 2d6226d5f1883669e9fb775914512dea2ed0dd7a..3a94959d64a3a63b784bcadfd47cd12213f3fb2d 100644 (file)
@@ -49,7 +49,7 @@ static int decode_tree_entry(struct tree_desc *desc, const char *buf, unsigned l
        desc->entry.path = path;
        desc->entry.mode = canon_mode(mode);
        desc->entry.pathlen = len - 1;
-       hashcpy(desc->entry.oid.hash, (const unsigned char *)path + len);
+       oidread(&desc->entry.oid, (const unsigned char *)path + len);
 
        return 0;
 }