Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-07-28 01:26:37 +0300
committerJunio C Hamano <gitster@pobox.com>2023-07-28 01:26:37 +0300
commit9562f19026f1dcdfcfda86c2c9b7cff21c8b0642 (patch)
tree37fe37bad4646cadfdda68b22a4ec8ee1288cbcd /builtin/clone.c
parent7fb1483c27f367e5654e6f23586de58a30be6025 (diff)
parenta2dad4868bf0681f63fe10264c171b5a547324a5 (diff)
Merge branch 'jc/transport-parseopt-fix'
Command line parser fixes. * jc/transport-parseopt-fix: fetch: reject --no-ipv[46] parse-options: introduce OPT_IPVERSION()
Diffstat (limited to 'builtin/clone.c')
-rw-r--r--builtin/clone.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index c65378b3d2..c6357af949 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -161,10 +161,7 @@ static struct option builtin_clone_options[] = {
N_("set config inside the new repository")),
OPT_STRING_LIST(0, "server-option", &server_options,
N_("server-specific"), N_("option to transmit")),
- OPT_SET_INT('4', "ipv4", &family, N_("use IPv4 addresses only"),
- TRANSPORT_FAMILY_IPV4),
- OPT_SET_INT('6', "ipv6", &family, N_("use IPv6 addresses only"),
- TRANSPORT_FAMILY_IPV6),
+ OPT_IPVERSION(&family),
OPT_PARSE_LIST_OBJECTS_FILTER(&filter_options),
OPT_BOOL(0, "also-filter-submodules", &option_filter_submodules,
N_("apply partial clone filters to submodules")),