revision.c: reduce implicit dependency the_repository
[gitweb.git] / builtin / pull.c
index 33b7100837d6b49f13d5f2d80336cd36d8cb126a..9c455984d1b64ce19db937ca503a6aedf4d4acbf 100644 (file)
@@ -944,7 +944,7 @@ int cmd_pull(int argc, const char **argv, const char *prefix)
                int ret = 0;
                if ((recurse_submodules == RECURSE_SUBMODULES_ON ||
                     recurse_submodules == RECURSE_SUBMODULES_ON_DEMAND) &&
-                   submodule_touches_in_range(&rebase_fork_point, &curr_head))
+                   submodule_touches_in_range(&the_index, &rebase_fork_point, &curr_head))
                        die(_("cannot rebase with locally recorded submodule modifications"));
                if (!autostash) {
                        struct commit_list *list = NULL;