diff options
author | Patrick Steinhardt <ps@pks.im> | 2023-05-10 14:34:02 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-05-10 10:35:24 -0700 |
commit | 5667141e3b2a5a9f983882df3a3b1f481ce9be88 (patch) | |
tree | 6a52aa11c79a5dc7e1ea2c47d51f8b93ee6b424f /t/t9350-fast-export.sh | |
parent | 667fcf4e15379790f0b609d6a83d578e69f20301 (diff) | |
download | git-5667141e3b2a5a9f983882df3a3b1f481ce9be88.tar.gz |
fetch: fix `--no-recurse-submodules` with multi-remote fetches
When running `git fetch --no-recurse-submodules`, the exectation is that
we don't fetch any submodules. And while this works for fetches of a
single remote, it doesn't when fetching multiple remotes at once. The
result is that we do recurse into submodules even though the user has
explicitly asked us not to.
This is because while we pass on `--recurse-submodules={yes,on-demand}`
if specified by the user, we don't pass on `--no-recurse-submodules` to
the subprocess spawned to perform the submodule fetch.
Fix this by also forwarding this flag as expected.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9350-fast-export.sh')
0 files changed, 0 insertions, 0 deletions