Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t9131-git-svn-empty-symlink.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t9131-git-svn-empty-symlink.sh` 110 lines ยท 2314 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='test that git handles an svn repository with empty symlinks' 4 5 . ./lib-git-svn.sh 6 test_expect_success 'load svn dumpfile' ' 7 svnadmin load "$rawsvnrepo" < doink 62 63 K 10 64 svn:author 65 V 12 66 normalperson 67 K 8 68 svn:date 69 V 27 70 2008-11-27T03:55:31.601672Z 71 PROPS-END 72 73 Node-path: bar 74 Node-kind: file 75 Node-action: change 76 Text-content-length: 10 77 Text-content-md5: `92ca4fe7a9721f877f765c252dcd66c9` 78 Content-length: 10 79 80 link doink 81 82 EOF 83 ' 84 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' 92 93 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' 101 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' 108 109 110 test_done