Xing Xin
148bc7bf4b
fetch: respect --server-option when fetching multiple remotes
...
Fix an issue where server options specified via the command line
(`--server-option` or `-o`) were not sent when fetching from multiple
remotes using Git protocol v2.
To reproduce the issue with a repository containing multiple remotes:
GIT_TRACE_PACKET=1 git -c protocol.version=2 fetch --server-option=demo --all
Observe that no server options are sent to any remote.
The root cause was identified in `builtin/fetch.c:fetch_multiple`, which
is invoked when fetching from more than one remote. This function forks
a `git-fetch` subprocess for each remote but did not include the
specified server options in the subprocess arguments.
This commit ensures that command-line specified server options are
properly passed to each subprocess. Relevant tests have been added.
Signed-off-by: Xing Xin <xingxin.xx@bytedance.com>
Reviewed-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-10-08 10:22:09 -07:00
..
2024-09-13 14:33:30 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:33:30 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:33:30 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:33:30 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-10-02 07:46:26 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-25 10:24:54 -07:00
2024-10-08 10:22:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-10-04 08:01:27 -07:00
2024-10-02 07:46:26 -07:00
2024-09-13 14:33:30 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-10-02 07:46:26 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-24 10:54:39 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:33:30 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-24 10:54:39 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:33:30 -07:00
2024-09-23 10:35:09 -07:00
2024-10-02 07:46:26 -07:00
2024-10-08 10:22:06 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-25 18:24:50 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:33:30 -07:00
2024-09-13 14:33:30 -07:00
2024-09-23 10:35:09 -07:00
2024-10-02 07:46:26 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-25 10:24:53 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-10-02 07:46:25 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-10-02 07:46:26 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-13 14:33:30 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-13 14:32:24 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00
2024-09-23 10:35:09 -07:00