diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-06-18 11:16:55 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-18 11:16:55 -0700 |
commit | bcacc0ebdb17b55040826bf82d1bde4070119250 (patch) | |
tree | 190507d06bd12dec65429c135b9ca340d844298d /t | |
parent | 1c5d6b2a401576f74c76f56dae0204604235705c (diff) | |
parent | 9d2e942070b235e1f4a0b8dd4c55a6b3f0fe914a (diff) | |
download | git-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-x | t/t5601-clone.sh | 12 |
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 |