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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Oct 30, 2009 at 15:15 UTC
ebc9d420566de32dbadada5a4f700db2d974853c
1 file changed
+4
-2
builtin-clone.c
+4
-2
@@ -51,7 +51,9 @@ static struct option builtin_clone_options[] = {
51
OPT_BOOLEAN('n', "no-checkout", &option_no_checkout,
52
"don't create a checkout"),
53
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 },
57
OPT_BOOLEAN(0, "mirror", &option_mirror,
58
"create a mirror repository (implies bare)"),
59
OPT_BOOLEAN('l', "local", &option_local,
@@ -61,7 +63,7 @@ static struct option builtin_clone_options[] = {
63
OPT_BOOLEAN('s', "shared", &option_shared,
64
"setup as shared repository"),
65
OPT_BOOLEAN(0, "recursive", &option_recursive,
64
- "setup as shared repository"),
66
+ "initialize submodules in the clone"),
67
OPT_STRING(0, "template", &option_template, "path",
68
"path the template repository"),
69
OPT_STRING(0, "reference", &option_reference, "repo",