diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-06-02 22:52:22 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-02 22:52:22 (GMT) |
commit | 41aaccdcf9170e744e423f2b1f889ada6604ae38 (patch) | |
tree | b785562c2face9c4b2523779525d186d0cbe368c /t | |
parent | dbbc93b221c6ee9cb2d417a43078b0d2a986fd33 (diff) | |
parent | 60003340cda05f5ecd79ee8522b21eda038b994b (diff) | |
download | git-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 't')
-rwxr-xr-x | t/t5601-clone.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index 67869b4..0629149 100755 --- a/t/t5601-clone.sh +++ b/t/t5601-clone.sh @@ -280,4 +280,9 @@ test_expect_success 'clone checking out a tag' ' test_cmp fetch.expected fetch.actual ' +test_expect_success NOT_MINGW,NOT_CYGWIN 'clone local path foo:bar' ' + cp -R src "foo:bar" && + git clone "./foo:bar" foobar +' + test_done |