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/t9132-git-svn-broken-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 / t9132-git-svn-broken-symlink.sh` 102 lines ยท 1584 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 63 64 K 10 65 svn:author 66 V 12 67 normalperson 68 K 8 69 svn:date 70 V 27 71 2008-11-27T03:55:31.601672Z 72 PROPS-END 73 74 Node-path: bar 75 Node-kind: file 76 Node-action: change 77 Text-content-length: 10 78 Text-content-md5: `92ca4fe7a9721f877f765c252dcd66c9` 79 Content-length: 10 80 81 link doink 82 83 EOF 84 ' 85 86 test_expect_success 'clone using git svn' 'git svn clone -r1 "$svnrepo" x' 87 88 test_expect_success SYMLINKS '"bar" is a symlink that points to "asdf"' ' 89 test -L x/bar && 90 (cd x && test xasdf = x"$(git cat-file blob HEAD:bar)") 91 ' 92 93 test_expect_success 'get "bar" => symlink fix from svn' ' 94 (cd x && git svn rebase) 95 ' 96 97 test_expect_success SYMLINKS '"bar" remains a proper symlink' ' 98 test -L x/bar && 99 (cd x && test xdoink = x"$(git cat-file blob HEAD:bar)") 100 ' 101 102 test_done