grep: use the right index instead of the_index
[gitweb.git] / builtin / pack-objects.c
index 4391504a91367bc8c4897e66921fe9a91263f0d0..3ff6da441f369dd313c645fa36a3fb334d397323 100644 (file)
@@ -945,7 +945,7 @@ static int no_try_delta(const char *path)
 
        if (!check)
                check = attr_check_initl("delta", NULL);
-       if (git_check_attr(path, check))
+       if (git_check_attr(&the_index, path, check))
                return 0;
        if (ATTR_FALSE(check->items[0].value))
                return 1;