setup_traverse_info(): stop copying oid
[gitweb.git] / tree-walk.c
index ec32a47b2e7664365f771f3955747794001d3f28..ba106152efa55a6c3de2ec6c29a300a584960960 100644 (file)
@@ -177,10 +177,8 @@ void setup_traverse_info(struct traverse_info *info, const char *base)
        info->pathlen = pathlen ? pathlen + 1 : 0;
        info->name.path = base;
        info->name.pathlen = pathlen;
-       if (pathlen) {
-               hashcpy(info->name.oid.hash, (const unsigned char *)base + pathlen + 1);
+       if (pathlen)
                info->prev = &dummy;
-       }
 }
 
 char *make_traverse_path(char *path, const struct traverse_info *info, const struct name_entry *n)