submodule: fix submodule--helper clone usage
authorJacob Keller <jacob.keller@gmail.com>
Mon, 29 Feb 2016 22:58:32 +0000 (14:58 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Mar 2016 20:24:05 +0000 (12:24 -0800)
git submodule--helper clone usage stated that paths were added after the
[--] argument. The actual implementation required use of --path argument
and only supports one path at a time. Update the usage string to match
the current implementation.

Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
index 1e18075ed90f34890d75ad5d0fa2e4cb2f63d9bc..3c4d3ff7f4af6874f9ab9004bedb8690f3c4ac72 100644 (file)
@@ -187,7 +187,7 @@ static int module_clone(int argc, const char **argv, const char *prefix)
        const char *const git_submodule_helper_usage[] = {
                N_("git submodule--helper clone [--prefix=<path>] [--quiet] "
                   "[--reference <repository>] [--name <name>] [--url <url>]"
        const char *const git_submodule_helper_usage[] = {
                N_("git submodule--helper clone [--prefix=<path>] [--quiet] "
                   "[--reference <repository>] [--name <name>] [--url <url>]"
-                  "[--depth <depth>] [--] [<path>...]"),
+                  "[--depth <depth>] [--path <path>]"),
                NULL
        };
 
                NULL
        };