summaryrefslogtreecommitdiff
path: root/builtin/fetch.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-03-25 23:38:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-03-25 23:38:25 (GMT)
commitdd9ff30dffdd03c579f4d867286dac3e46e05c8d (patch)
treeeeea4590b6fb9d9d470642a1608021eb70bc63d4 /builtin/fetch.c
parent6e1a8952e90e5d125177dbdee21425d1ba2d3584 (diff)
parent5fff35d880df2bb4cfce032c54a95abadce3f881 (diff)
downloadgit-dd9ff30dffdd03c579f4d867286dac3e46e05c8d.zip
git-dd9ff30dffdd03c579f4d867286dac3e46e05c8d.tar.gz
git-dd9ff30dffdd03c579f4d867286dac3e46e05c8d.tar.bz2
Merge branch 'gc/recursive-fetch-with-unused-submodules'
When "git fetch --recurse-submodules" grabbed submodule commits that would be needed to recursively check out newly fetched commits in the superproject, it only paid attention to submodules that are in the current checkout of the superproject. We now do so for all submodules that have been run "git submodule init" on. * gc/recursive-fetch-with-unused-submodules: submodule: fix latent check_has_commit() bug fetch: fetch unpopulated, changed submodules submodule: move logic into fetch_task_create() submodule: extract get_fetch_task() submodule: store new submodule commits oid_array in a struct submodule: inline submodule_commits() into caller submodule: make static functions read submodules from commits t5526: create superproject commits with test helper t5526: stop asserting on stderr literally t5526: introduce test helper to assert on fetches
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r--builtin/fetch.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c
index 4d12c2f..9b4018f 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -2258,13 +2258,13 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
max_children = fetch_parallel_config;
add_options_to_argv(&options);
- result = fetch_populated_submodules(the_repository,
- &options,
- submodule_prefix,
- recurse_submodules,
- recurse_submodules_default,
- verbosity < 0,
- max_children);
+ result = fetch_submodules(the_repository,
+ &options,
+ submodule_prefix,
+ recurse_submodules,
+ recurse_submodules_default,
+ verbosity < 0,
+ max_children);
strvec_clear(&options);
}