Skip to content

Commit 4be4d55

Browse files
me-andEric Wong
authored andcommitted
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 <[email protected]> Signed-off-by: Eric Wong <[email protected]>
1 parent c2c5f6b commit 4be4d55

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/t9117-git-svn-init-clone.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,10 @@ test_expect_success 'clone with -s/-T/-b/-t and --prefix "" still works' '
119119
rm -f warning
120120
'
121121

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+
122128
test_done

0 commit comments

Comments
 (0)