wt-status.c: remove implicit dependency on the_index
[gitweb.git] / builtin / pull.c
index c21aa276f1e93ef2593397d5304e72d59e6914b0..6026ce1a694b7cb923828053ad8e737e018ec210 100644 (file)
@@ -888,7 +888,8 @@ int cmd_pull(int argc, const char **argv, const char *prefix)
                        die(_("Updating an unborn branch with changes added to the index."));
 
                if (!autostash)
-                       require_clean_work_tree(N_("pull with rebase"),
+                       require_clean_work_tree(the_repository,
+                               N_("pull with rebase"),
                                _("please commit or stash them."), 1, 0);
 
                if (get_rebase_fork_point(&rebase_fork_point, repo, *refspecs))