Skip to content

Commit ebc9d42

Browse files
committed
clone: fix help on options
Fix incorrect description of --recursive, and stop listing the historical synonym --naked that is not advertised anywhere. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f740cc2 commit ebc9d42

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

builtin-clone.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ static struct option builtin_clone_options[] = {
5151
OPT_BOOLEAN('n', "no-checkout", &option_no_checkout,
5252
"don't create a checkout"),
5353
OPT_BOOLEAN(0, "bare", &option_bare, "create a bare repository"),
54-
OPT_BOOLEAN(0, "naked", &option_bare, "create a bare repository"),
54+
{ OPTION_BOOLEAN, 0, "naked", &option_bare, NULL,
55+
"create a bare repository",
56+
PARSE_OPT_NOARG | PARSE_OPT_HIDDEN },
5557
OPT_BOOLEAN(0, "mirror", &option_mirror,
5658
"create a mirror repository (implies bare)"),
5759
OPT_BOOLEAN('l', "local", &option_local,
@@ -61,7 +63,7 @@ static struct option builtin_clone_options[] = {
6163
OPT_BOOLEAN('s', "shared", &option_shared,
6264
"setup as shared repository"),
6365
OPT_BOOLEAN(0, "recursive", &option_recursive,
64-
"setup as shared repository"),
66+
"initialize submodules in the clone"),
6567
OPT_STRING(0, "template", &option_template, "path",
6668
"path the template repository"),
6769
OPT_STRING(0, "reference", &option_reference, "repo",

0 commit comments

Comments
 (0)