Merge branch 'ew/fetch-no-write-fetch-head-fix'

* ew/fetch-no-write-fetch-head-fix:
  fetch: pass --no-write-fetch-head to subprocesses
This commit is contained in:
Junio C Hamano
2023-03-19 15:03:13 -07:00
3 changed files with 22 additions and 0 deletions

View File

@ -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 */