Merge branch 'rs/t4202-invert-grep-test-fix'
[git/debian.git] / t / t9123-git-svn-rebuild-with-rewriteroot.sh
blob3320b1f39cf65ca770a6257e62779eb397eda8c2
1 #!/bin/sh
3 # Copyright (c) 2008 Jan Krüger
6 test_description='git svn respects rewriteRoot during rebuild'
8 TEST_PASSES_SANITIZE_LEAK=true
9 . ./lib-git-svn.sh
11 mkdir import
12 (cd import
13 touch foo
14 svn_cmd import -m 'import for git svn' . "$svnrepo" >/dev/null
16 rm -rf import
18 test_expect_success 'init, fetch and checkout repository' '
19 git svn init --rewrite-root=http://invalid.invalid/ "$svnrepo" &&
20 git svn fetch &&
21 git checkout -b mybranch remotes/git-svn
24 test_expect_success 'remove rev_map' '
25 rm "$GIT_SVN_DIR"/.rev_map.*
28 test_expect_success 'rebuild rev_map' '
29 git svn rebase >/dev/null
32 test_done