t1406: make hash-size independent
[gitweb.git] / userdiff.c
index 36af25e7f9f4693b196320f56bb0546d7dd2986a..f3f4be579c9810d0fcf94badd4bf21770b99c91b 100644 (file)
@@ -278,7 +278,7 @@ struct userdiff_driver *userdiff_find_by_path(const char *path)
                check = attr_check_initl("diff", NULL);
        if (!path)
                return NULL;
-       if (git_check_attr(path, check))
+       if (git_check_attr(&the_index, path, check))
                return NULL;
 
        if (ATTR_TRUE(check->items[0].value))