summaryrefslogtreecommitdiff
path: root/builtin/clone.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-06-02 22:52:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-06-02 22:52:22 (GMT)
commit41aaccdcf9170e744e423f2b1f889ada6604ae38 (patch)
treeb785562c2face9c4b2523779525d186d0cbe368c /builtin/clone.c
parentdbbc93b221c6ee9cb2d417a43078b0d2a986fd33 (diff)
parent60003340cda05f5ecd79ee8522b21eda038b994b (diff)
downloadgit-41aaccdcf9170e744e423f2b1f889ada6604ae38.zip
git-41aaccdcf9170e744e423f2b1f889ada6604ae38.tar.gz
git-41aaccdcf9170e744e423f2b1f889ada6604ae38.tar.bz2
Merge branch 'nd/clone-local-with-colon'
"git clone foo/bar:baz" cannot be a request to clone from a remote over git-over-ssh specified in the scp style. Detect this case and clone from a local repository at "foo/bar:baz". * nd/clone-local-with-colon: clone: allow cloning local paths with colons in them
Diffstat (limited to 'builtin/clone.c')
-rw-r--r--builtin/clone.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index 5e70696..b6ffc6b 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -782,6 +782,8 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
is_local = option_local != 0 && path && !is_bundle;
if (is_local && option_depth)
warning(_("--depth is ignored in local clones; use file:// instead."));
+ if (option_local > 0 && !is_local)
+ warning(_("--local is ignored"));
if (argc == 2)
dir = xstrdup(argv[1]);