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/t9123-git-svn-rebuild-with-rewriteroot.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 / t9123-git-svn-rebuild-with-rewriteroot.sh` 35 lines · 684 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Copyright (c) 2008 Jan Krüger 4 # 5 6 test_description='git svn respects rewriteRoot during rebuild' 7 8 . ./lib-git-svn.sh 9 10 test_expect_success 'setup svn repository' ' 11 test_when_finished "rm -rf import" && 12 mkdir import && 13 ( 14 cd import && 15 touch foo && 16 svn_cmd import -m "import for git svn" . "$svnrepo" >/dev/null 17 ) 18 ' 19 20 test_expect_success 'init, fetch and checkout repository' ' 21 git svn init --rewrite-root=http://invalid.invalid/ "$svnrepo" && 22 git svn fetch && 23 git checkout -b mybranch remotes/git-svn 24 ' 25 26 test_expect_success 'remove rev_map' ' 27 rm "$GIT_SVN_DIR"/.rev_map.* 28 ' 29 30 test_expect_success 'rebuild rev_map' ' 31 git svn rebase >/dev/null 32 ' 33 34 test_done 35