#!/bin/sh test_description='test that git handles an svn repository with empty symlinks' . ./lib-git-svn.sh test_expect_success 'load svn dumpfile' ' svnadmin load "$rawsvnrepo" < doink K 10 svn:author V 12 normalperson K 8 svn:date V 27 2008-11-27T03:55:31.601672Z PROPS-END Node-path: bar Node-kind: file Node-action: change Text-content-length: 10 Text-content-md5: 92ca4fe7a9721f877f765c252dcd66c9 Content-length: 10 link doink EOF ' test_expect_success 'clone using git svn' 'git svn clone -r1 "$svnrepo" x' test_expect_success SYMLINKS '"bar" is a symlink that points to "asdf"' ' test -L x/bar && (cd x && test xasdf = x"$(git cat-file blob HEAD:bar)") ' test_expect_success 'get "bar" => symlink fix from svn' ' (cd x && git svn rebase) ' test_expect_success SYMLINKS '"bar" remains a proper symlink' ' test -L x/bar && (cd x && test xdoink = x"$(git cat-file blob HEAD:bar)") ' test_done