revision.c: reduce implicit dependency the_repository
[gitweb.git] / builtin / difftool.c
index cdd585ca76d51f6d5dcca78a9e1dfa6f8102c476..e7023e3adff0b3f7ab24b055e9234aeaecb6111f 100644 (file)
@@ -112,7 +112,7 @@ static int use_wt_file(const char *workdir, const char *name,
                int fd = open(buf.buf, O_RDONLY);
 
                if (fd >= 0 &&
-                   !index_fd(&wt_oid, fd, &st, OBJ_BLOB, name, 0)) {
+                   !index_fd(&the_index, &wt_oid, fd, &st, OBJ_BLOB, name, 0)) {
                        if (is_null_oid(oid)) {
                                oidcpy(oid, &wt_oid);
                                use = 1;