diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-06-02 15:52:22 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-02 15:52:22 -0700 |
commit | 41aaccdcf9170e744e423f2b1f889ada6604ae38 (patch) | |
tree | b785562c2face9c4b2523779525d186d0cbe368c /builtin/clone.c | |
parent | dbbc93b221c6ee9cb2d417a43078b0d2a986fd33 (diff) | |
parent | 60003340cda05f5ecd79ee8522b21eda038b994b (diff) | |
download | git-41aaccdcf9170e744e423f2b1f889ada6604ae38.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/clone.c b/builtin/clone.c index 5e70696d84..b6ffc6b4fe 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]); |