diff options
| author | Eric Wong <e@80x24.org> | 2023-03-08 22:22:05 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-03-09 11:06:39 -0800 |
| commit | 15184ae9da1474908060a5c9b8c6ca88891e415e (patch) | |
| tree | ed5699de830884c6b94c0286b23bf28447c664d2 /builtin/fetch.c | |
| parent | Git 2.40-rc2 (diff) | |
| download | git-15184ae9da1474908060a5c9b8c6ca88891e415e.tar.gz git-15184ae9da1474908060a5c9b8c6ca88891e415e.zip | |
fetch: pass --no-write-fetch-head to subprocesses
It seems a user would expect this option would work regardless
of whether it's fetching from a single remote, many remotes,
or recursing into submodules.
Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch.c')
| -rw-r--r-- | builtin/fetch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index a09606b472..78513f1708 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -1880,6 +1880,8 @@ static void add_options_to_argv(struct strvec *argv) strvec_push(argv, "--ipv4"); else if (family == TRANSPORT_FAMILY_IPV6) strvec_push(argv, "--ipv6"); + if (!write_fetch_head) + strvec_push(argv, "--no-write-fetch-head"); } /* Fetch multiple remotes in parallel */ |
