t9117: test specifying full url to git svn init -T
According to the documentation, full URLs can be specified in the `-T` argument to `git svn init`. However, the canonicalization of such arguments squashes together consecutive "/"s, which unsurprisingly breaks http://, svn://, etc URLs. Add a failing test case to provide evidence of that. On systems where Subversion provides svn_path_canonicalize but not svn_dirent_canonicalize (Subversion 1.6 and earlier?), this test passes, as svn_path_canonicalize doesn't mangle the consecutive "/"s. [ew: fixed whitespace] Signed-off-by: Adam Dinwoodie <adam@dinwoodie.org> Signed-off-by: Eric Wong <normalperson@yhbt.net>
Adam Dinwoodie committed
Mar 16, 2016 at 19:09 UTC
4be4d550635d25a5050c3539f8ad3be44dabfce9
1 file changed
+6
t/t9117-git-svn-init-clone.sh
+6
@@ -119,4 +119,10 @@ test_expect_success 'clone with -s/-T/-b/-t and --prefix "" still works' '
119
rm -f warning
120
'
121
122
+test_expect_failure 'init with -T as a full url works' '
123
+ test ! -d project &&
124
+ git svn init -T "$svnrepo"/project/trunk project &&
125
+ rm -rf project
126
+ '
127
+
128
test_done