aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/fetch.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-01-10 11:52:50 -0800
committerJunio C Hamano <gitster@pobox.com>2022-01-10 11:52:50 -0800
commit3c0e4178277dee1cdc4607d7277a368379b12b3f (patch)
treead35aa7ebb2a24932c57bc053bf6b6227ce6bb48 /builtin/fetch.c
parentb48c69c3c8a0e6e44f31c70677ac40658d8f3439 (diff)
parent408c51f0b4b5f978ab3676a7dc8efaffe459bdee (diff)
downloadgit-3c0e4178277dee1cdc4607d7277a368379b12b3f.tar.gz
Merge branch 'ds/fetch-pull-with-sparse-index'
"git fetch" and "git pull" are now declared sparse-index clean. Also "git ls-files" learns the "--sparse" option to help debugging. * ds/fetch-pull-with-sparse-index: test-read-cache: remove --table, --expand options t1091/t3705: remove 'test-tool read-cache --table' t1092: replace 'read-cache --table' with 'ls-files --sparse' ls-files: add --sparse option fetch/pull: use the sparse index
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r--builtin/fetch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c
index f1fe73a3e0..e33fda4174 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -2009,6 +2009,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);