summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-06-02 15:52:22 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-06-02 15:52:22 -0700
commit41aaccdcf9170e744e423f2b1f889ada6604ae38 (patch)
treeb785562c2face9c4b2523779525d186d0cbe368c /t
parentMerge branch 'fc/fast-export-persistent-marks' (diff)
parentclone: allow cloning local paths with colons in them (diff)
downloadtgif-41aaccdcf9170e744e423f2b1f889ada6604ae38.tar.xz
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-xt/t5601-clone.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh
index 67869b4813..0629149edd 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