X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fclone.c;h=2ee1fa984620de4fad79ce94d4f993f5e83a053d;hb=674ef90904fe651ecacafc4211a8a24014160207;hp=61e0989b5ab8fffb16ec28e64c38b4fa236cb3ed;hpb=38a5932be8a8f0b0bd3bb949bdc5258d9c753f15;p=git.git diff --git a/builtin/clone.c b/builtin/clone.c index 61e0989b5..2ee1fa984 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -66,10 +66,10 @@ static struct option builtin_clone_options[] = { "setup as shared repository"), OPT_BOOLEAN(0, "recursive", &option_recursive, "initialize submodules in the clone"), - OPT_BOOLEAN(0, "recurse_submodules", &option_recursive, + OPT_BOOLEAN(0, "recurse-submodules", &option_recursive, "initialize submodules in the clone"), - OPT_STRING(0, "template", &option_template, "path", - "path the template repository"), + OPT_STRING(0, "template", &option_template, "template-directory", + "directory from which templates will be used"), OPT_STRING(0, "reference", &option_reference, "repo", "reference repository"), OPT_STRING('o', "origin", &option_origin, "branch", @@ -413,7 +413,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix) if (path) repo = xstrdup(make_nonrelative_path(repo_name)); else if (!strchr(repo_name, ':')) - repo = xstrdup(make_absolute_path(repo_name)); + die("repository '%s' does not exist", repo_name); else repo = repo_name; is_local = path && !is_bundle;