]>
Commit | Line | Data |
---|---|---|
74b1e123 JK |
1 | #!/bin/sh |
2 | # | |
3 | # Copyright (c) 2008 Jan Krüger | |
4 | # | |
5 | ||
1364ff27 | 6 | test_description='git svn respects rewriteRoot during rebuild' |
74b1e123 JK |
7 | |
8 | . ./lib-git-svn.sh | |
9 | ||
10 | mkdir import | |
fd4ec4f2 | 11 | (cd import |
74b1e123 | 12 | touch foo |
da083d68 | 13 | svn_cmd import -m 'import for git svn' . "$svnrepo" >/dev/null |
fd4ec4f2 | 14 | ) |
74b1e123 JK |
15 | rm -rf import |
16 | ||
17 | test_expect_success 'init, fetch and checkout repository' ' | |
18 | git svn init --rewrite-root=http://invalid.invalid/ "$svnrepo" && | |
a48fcd83 | 19 | git svn fetch && |
e1c0c158 | 20 | git checkout -b mybranch remotes/git-svn |
74b1e123 JK |
21 | ' |
22 | ||
23 | test_expect_success 'remove rev_map' ' | |
24 | rm "$GIT_SVN_DIR"/.rev_map.* | |
25 | ' | |
26 | ||
27 | test_expect_success 'rebuild rev_map' ' | |
28 | git svn rebase >/dev/null | |
29 | ' | |
30 | ||
31 | test_done | |
32 |