X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5601-clone.sh;h=8abb71afcd4d7389260baa6f82ecb9b53bb9524c;hb=bcacc0ebdb17b55040826bf82d1bde4070119250;hp=678cee502de54e5a9c18a43f114446d3392ec7f3;hpb=2b7d947b8f57f377b24bc2e802d0af67ff911d6f;p=git.git diff --git a/t/t5601-clone.sh b/t/t5601-clone.sh index 678cee502..8abb71afc 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