diff --git a/builtin/fetch.c b/builtin/fetch.c index da10d1d532b733..67218c23cc6607 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -2002,6 +2002,8 @@ int cmd_fetch(int argc, const char **argv, const char *prefix) } git_config(git_fetch_config, NULL); + prepare_repo_settings(the_repository); + the_repository->settings.command_requires_full_index = 0; argc = parse_options(argc, argv, prefix, builtin_fetch_options, builtin_fetch_usage, 0); diff --git a/builtin/pull.c b/builtin/pull.c index ae9f5bd7ccde01..aa03ca3124b5cc 100644 --- a/builtin/pull.c +++ b/builtin/pull.c @@ -960,6 +960,8 @@ int cmd_pull(int argc, const char **argv, const char *prefix) set_reflog_message(argc, argv); git_config(git_pull_config, NULL); + prepare_repo_settings(the_repository); + the_repository->settings.command_requires_full_index = 0; argc = parse_options(argc, argv, prefix, pull_options, pull_usage, 0);