diff-lib: allow ita entries treated as "not yet exist in index"
[gitweb.git] / tree.c
diff --git a/tree.c b/tree.c
index 0089e52d9dff41bece11056e92625b923515c462..2b5a5a8663b6c1a8dcd92271aaf145c09352a43c 100644 (file)
--- a/tree.c
+++ b/tree.c
@@ -26,7 +26,7 @@ static int read_one_entry_opt(const unsigned char *sha1, const char *base, int b
        ce->ce_namelen = baselen + len;
        memcpy(ce->name, base, baselen);
        memcpy(ce->name + baselen, pathname, len+1);
-       hashcpy(ce->sha1, sha1);
+       hashcpy(ce->oid.hash, sha1);
        return add_cache_entry(ce, opt);
 }