diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-03-19 15:03:13 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-03-19 15:03:13 -0700 |
| commit | 947604ddb7fffd6be6aa34192360ec338079dd6a (patch) | |
| tree | 41879c3fc3d696277a6bc01ebea14d93cb6476a7 /builtin/fetch.c | |
| parent | Merge branch 'fc/advice-diverged-history' (diff) | |
| parent | fetch: pass --no-write-fetch-head to subprocesses (diff) | |
| download | git-947604ddb7fffd6be6aa34192360ec338079dd6a.tar.gz git-947604ddb7fffd6be6aa34192360ec338079dd6a.zip | |
Merge branch 'ew/fetch-no-write-fetch-head-fix'
* ew/fetch-no-write-fetch-head-fix:
fetch: pass --no-write-fetch-head to subprocesses
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 bf627e0412..7221e57f35 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -1883,6 +1883,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 */ |
