Merge branch 'nd/shared-index-fix' into maint
[gitweb.git] / revision.c
index 1f7454c947a683eb2df28e51504bf67ebe8379cd..a2ba54459d42ba032cd3c16aecdef2eeff98562f 100644 (file)
@@ -1352,7 +1352,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);
        }