Skip to content

Commit 6854689

Browse files
committed
Merge branch 'ar/fetch-ipversion-in-all'
"git fetch --all --ipv4/--ipv6" forgot to pass the protocol options to instances of the "git fetch" that talk to individual remotes, which has been corrected. * ar/fetch-ipversion-in-all: fetch: pass --ipv4 and --ipv6 options to sub-fetches
2 parents 31b9454 + 4e735c1 commit 6854689

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

builtin/fetch.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,10 @@ static void add_options_to_argv(struct strvec *argv)
15521552
strvec_push(argv, "-v");
15531553
else if (verbosity < 0)
15541554
strvec_push(argv, "-q");
1555-
1555+
if (family == TRANSPORT_FAMILY_IPV4)
1556+
strvec_push(argv, "--ipv4");
1557+
else if (family == TRANSPORT_FAMILY_IPV6)
1558+
strvec_push(argv, "--ipv6");
15561559
}
15571560

15581561
/* Fetch multiple remotes in parallel */

0 commit comments

Comments
 (0)