summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-06-18 11:16:55 -0700
committerJunio C Hamano <gitster@pobox.com>2010-06-18 11:16:55 -0700
commitbcacc0ebdb17b55040826bf82d1bde4070119250 (patch)
tree190507d06bd12dec65429c135b9ca340d844298d /t
parent1c5d6b2a401576f74c76f56dae0204604235705c (diff)
parent9d2e942070b235e1f4a0b8dd4c55a6b3f0fe914a (diff)
downloadgit-bcacc0ebdb17b55040826bf82d1bde4070119250.tar.gz
Merge branch 'jk/url-decode'
* jk/url-decode: decode file:// and ssh:// URLs make url-related functions reusable
Diffstat (limited to 't')
-rwxr-xr-xt/t5601-clone.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh
index 678cee502d..8abb71afcd 100755
--- a/t/t5601-clone.sh
+++ b/t/t5601-clone.sh
@@ -176,4 +176,16 @@ test_expect_success 'clone respects global branch.autosetuprebase' '
)
'
+test_expect_success 'respect url-encoding of file://' '
+ git init x+y &&
+ test_must_fail git clone "file://$PWD/x+y" xy-url &&
+ git clone "file://$PWD/x%2By" xy-url
+'
+
+test_expect_success 'do not respect url-encoding of non-url path' '
+ git init x+y &&
+ test_must_fail git clone x%2By xy-regular &&
+ git clone x+y xy-regular
+'
+
test_done