3 test_description='test that git handles an svn repository with empty symlinks'
6 test_expect_success 'load svn dumpfile' '
7 svnadmin load "$rawsvnrepo" <<EOF
8 SVN-fs-dump-format-version: 2
10 UUID: 60780f9a-7df5-43b4-83ab-60e2c0673ef7
13 Prop-content-length: 56
19 2008-11-26T07:17:27.590577Z
23 Prop-content-length: 111
37 2008-11-26T07:18:03.511836Z
43 Prop-content-length: 33
44 Text-content-length: 0
45 Text-content-md5: d41d8cd98f00b204e9800998ecf8427e
55 Prop-content-length: 121
70 2008-11-27T03:55:31.601672Z
76 Text-content-length: 10
77 Text-content-md5: 92ca4fe7a9721f877f765c252dcd66c9
85 test_expect_success 'clone using git svn' 'git svn clone -r1 "$svnrepo" x'
86 test_expect_success 'enable broken symlink workaround' \
87 '(cd x && git config svn.brokenSymlinkWorkaround true)'
88 test_expect_success '"bar" is an empty file' 'test_must_be_empty x/bar'
89 test_expect_success 'get "bar" => symlink fix from svn' \
90 '(cd x && git svn rebase)'
91 test_expect_success SYMLINKS '"bar" becomes a symlink' 'test -h x/bar'
94 test_expect_success 'clone using git svn' 'git svn clone -r1 "$svnrepo" y'
95 test_expect_success 'disable broken symlink workaround' \
96 '(cd y && git config svn.brokenSymlinkWorkaround false)'
97 test_expect_success '"bar" is an empty file' 'test_must_be_empty y/bar'
98 test_expect_success 'get "bar" => symlink fix from svn' \
99 '(cd y && git svn rebase)'
100 test_expect_success '"bar" does not become a symlink' '! test -L y/bar'
102 # svn.brokenSymlinkWorkaround is unset
103 test_expect_success 'clone using git svn' 'git svn clone -r1 "$svnrepo" z'
104 test_expect_success '"bar" is an empty file' 'test_must_be_empty z/bar'
105 test_expect_success 'get "bar" => symlink fix from svn' \
106 '(cd z && git svn rebase)'
107 test_expect_success '"bar" does not become a symlink' '! test -L z/bar'