travis: run tests with GIT_TEST_SPLIT_INDEX
[gitweb.git] / revision.c
index d167223e694e54626786740954454d4973e28752..d6a89c5af1a05ea169b9b0afab36dbadf3915b00 100644 (file)
@@ -1343,7 +1343,8 @@ void add_index_objects_to_pending(struct rev_info *revs, unsigned int flags)
                        continue; /* current index already taken care of */
 
                if (read_index_from(&istate,
-                                   worktree_git_path(wt, "index")) > 0)
+                                   worktree_git_path(wt, "index"),
+                                   get_worktree_git_dir(wt)) > 0)
                        do_add_index_objects_to_pending(revs, &istate);
                discard_index(&istate);
        }