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/t9144-git-svn-old-rev_map.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 / t9144-git-svn-old-rev_map.sh` 31 lines ยท 687 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Copyright (c) 2009 Eric Wong 4 5 test_description='git svn old rev_map preservd' 6 . ./lib-git-svn.sh 7 8 test_expect_success 'setup test repository with old layout' ' 9 mkdir i && 10 (cd i && > a) && 11 svn_cmd import -m- i "$svnrepo" && 12 git svn init "$svnrepo" && 13 git svn fetch && 14 test -d .git/svn/refs/remotes/git-svn/ && 15 ! test -e .git/svn/git-svn/ && 16 mv .git/svn/refs/remotes/git-svn .git/svn/ && 17 rm -r .git/svn/refs 18 ' 19 20 test_expect_success 'old layout continues to work' ' 21 svn_cmd import -m- i "$svnrepo/b" && 22 git svn rebase && 23 echo a >> b/a && 24 git add b/a && 25 git commit -m- -a && 26 git svn dcommit && 27 ! test -d .git/svn/refs/ && 28 test -e .git/svn/git-svn/ 29 ' 30 31 test_done