3 test_description
='test that git handles an svn repository with empty symlinks'
5 TEST_FAILS_SANITIZE_LEAK
=true
7 test_expect_success
'load svn dumpfile' '
8 svnadmin load "$rawsvnrepo" <<EOF
9 SVN-fs-dump-format-version: 2
11 UUID: 60780f9a-7df5-43b4-83ab-60e2c0673ef7
14 Prop-content-length: 56
20 2008-11-26T07:17:27.590577Z
24 Prop-content-length: 111
38 2008-11-26T07:18:03.511836Z
44 Prop-content-length: 33
45 Text-content-length: 4
46 Text-content-md5: 912ec803b2ce49e4a541068d495ab570
57 Prop-content-length: 121
72 2008-11-27T03:55:31.601672Z
78 Text-content-length: 10
79 Text-content-md5: 92ca4fe7a9721f877f765c252dcd66c9
87 test_expect_success
'clone using git svn' 'git svn clone -r1 "$svnrepo" x'
89 test_expect_success SYMLINKS
'"bar" is a symlink that points to "asdf"' '
91 (cd x && test xasdf = x"$(git cat-file blob HEAD:bar)")
94 test_expect_success
'get "bar" => symlink fix from svn' '
95 (cd x && git svn rebase)
98 test_expect_success SYMLINKS
'"bar" remains a proper symlink' '
100 (cd x && test xdoink = x"$(git cat-file blob HEAD:bar)")